In most enterprise applications to make the UI dynamic, it needs to be integrated with the back-end server to provide updated information as per user interaction. For example, when the user enters the code zip code, the system can return the name of the province, district, and sub-district from the database. In ONEWEB, Microflow provides the interface for integration.
In this section, we will see how to integrate the Smart Form with database to implement dynamicity on UI using the Microflow
Smart Form Integration using Microflow
1. Go to the App Designer 2. Open your Entity 3. Choose the element which should trigger the action and click on the integrate icon . (This icon is available on all the fields and all buttons)
5. ON Microflow Configuration Window select "change()" in Event and click on the Microflow button Select "Your Project Name" in Project Select "Your Flow Name" in Microflow Select "Y" in Async ('Y' for asynchronous call and 'N' for synchronous)
6. Map Entity Parameters to Flow Parameters.
7. Click on the Response tab and map the output parameters from Microflow to the Entity parameters
8. Click OK and Save Entity. You have successfully integrated your Smart Form into the Microflow.
Now when you open the form in Runtime and click on the button, it will call the microflow.
4. Click to open Microflow Configuration Window