| Name | Type | Description |
|---|---|---|
| query | sys.data.Query | It is a filter by grouping defined in slice configurations. |
object - You should return a value in which the type is the defined in slice configurations. //displays a invoices by state
var dataRS = sys.data.find(query);
var total = 0;
if (dataRS) {
while (dataRS.hasNext()) {
var saleInvoice = dataRS.next();
total = total + saleInvoice.field('total').val();
}
}
return total;