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.
The main way to get data into your DataSource is through a Selection. This selects data from your database and copies it into your DataSource. For example, if you want to populate an Organizations DataSource with all the records in your organization file you might perform a "SelectAll" selection or alternatively you might just select the records that have a type of Customer or similar.
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".
Via a button on a Page