Populating Data Sources

Data Sources are the data areas held within the UI, structured by the Entities, that are used by the App pages and Functionality Actions in the App.
Data Sources are usually populated with information, from the database, for display and manipulation within the app or as entry forms for new information that is to be written back to the database by the app e.g. a sales order. There are several ways to populate a Data Source.
Data Sources are usually populated with information, from the database, for display and manipulation within the app or as entry forms for new information that is to be written back to the database by the app e.g. a sales order. There are several ways to populate a Data Source.
On entry into a Page Series
When defining a Page Series there is and option called "actions on load". This allows you to call upon Evoke Click Actions the first time a Page Series is accessed. There are several Click Actions that can be used to populate Data Sources.
The most common Click Action to populate Data Sources a selection.
Here you can see the Click Action "Run Selection" being used. We have identified the Data Source that we want populated with data and identified the selection ID that we previously set up in Entities.
The selection will populate the Data Source and if the Data Source itself contains Entities then you can retrieve these into the Data Source using the Click Action "Retrieve Related Data".
Selections are defined against Entities and the Selection Statement in Data Mappings.
Via a button on a Page
The Button Widget that is set up as part of a Template has an "Actions on Click/Tap" option. This allows you to call upon Evoke Click Actions in response to the button being clicked. There are several Click Actions that can be used to populate Data Sources. The options are as shown above, where you can see the Click Action "Run Selection" being used. We have identified the Data Source that we want populated with data and identified the selection ID that we previously set up in Entities.
The selection will populate the Data Source and if the Data Source itself contains Entities then you can retrieve these into the Data Source using the Click Action "Retrieve Related Data".
When navigating to another Page
Navigation, such as Header navigation or Grid Row Navigation have Evoke Click Actions that are actionjed in response to the header menu being used or grid row navigation being used. As above, there are several Click Actions that can be used to populate Data Sources such as "Run Selection" (see above).
As part of Widget e.g. a selection
just like the Button Widget there are several other Widgets that populate Data Sources. Widgets such as SelectAuto, SelectAutodrop, Lookup, etc. Each that is set up as part of a Template have the ability to run selections as part of the Widget.