Parameters
NameTypeDescription
querysys.data.QueryIt is a filter by grouping defined in slice configurations.
Returns
object - You should return a value in which the type is the defined in slice configurations.
Samples
 
//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;