Service components are invoked via events. Here is how to invoke a Data Source on button click: - Select a button component, open Events view
- Click Add Event > Click. Click event will appear in the list
- Click + button (right hand side) and select Invoke Service action.
- From the drop down list, select data source to invoke
- Click OK.
When testing the app, when this button is clicked, the associated data source (service) will be invoked. You can use any other event/action combination to invoke the data source.
How to invoke on page loadTo invoke a service when the page is loaded, use Load event (available on screen) and Invoke Data Source action. |