Skip to content

Custom Queries

This sample project demonstrates how to define and use a custom query to read data records.

In the sample, instead of configuring selection options for the source, the appRules Custom Query Editor is used to define a simple query.

Feel free to experiment with your own queries.

Points of interest:

  • 1 - InitializeSource Activity

Select CustomQuery as the QueryType instead of Configuration. Click the Add/Edit Query property to define the custom query:

  • 2 - While Activity

The While activity is used to loop through and view the resulting records. It has been configured with a condition to to end after reading the last record from the dataset.

  • 3 - ViewRuntimeRecords Activity

This activity has been configured to display the current record. In an actual project, the values can be used for loading additional data, calculations, etc.

  • 4 - GetNextRecord Activity

This activity gets the next record from the resulting dataset.