SAIL Recipes give you an opportunity to explore different interface design patterns. To learn how to directly use SAIL recipes within your interfaces, see Adapt a SAIL Recipe to Work with My Applications.
Aggregate data from a data store entity, specifically the total number of employees for each title in the Engineering department, to display in a bar chart.
This recipe uses an employee data structure and objects created through the Use the Write to Data Store Entity Smart Service Function on an Interface recipe. Make sure that recipes has been built first in order to see data in this recipe.
This scenario demonstrates:
departmentcolumns so that only the
titleand click Add Field.
You should see a chart that looks similar to this:
To add a filter, enter the following expression after the aggregation parameter of
filter: a!queryFilter(field: "department", operator: "=", value: "Engineering"),
The comma at the end of this expression is included because pagingInfo is defined later. Your final expression should look like this:
a!query(). If you would like to filter using multiple constraints, use
a!queryLogicalExpression()in the logicalExpression parameter instead.