Dilan,
Suppose I have an entity called TestEntity
With a before commit event handler like this:
If I create a page with a datagrid that points to this entity, like this
I can then create a microflow that accepts a list of TestEntity objects, like this:
Now if I want my users to be able to commit all objects displaying in the datagrid, I add an action button to the datagrid that calls this microflow:
when the user clicks this action button, all objects in the datagrid will be passed to the microflow and committed, which will execute the before commit microflow for all of these objects using a single microflow.
You can see this by clicking Edit next to Microflow settings:
If I want my users to be able to select which objects to commit, but still commit a list of objects, on the datagrid, I can change the datagrid properties to enable either Multi-selection or Simple Multi-selection, as shown below:
Hope that helps,
Mike
Dilan
Create another microflow that accepts a list of Final_Bill_Item_info objects. In the microflow, use a commit action to commit the list of objects passed in ( be sure to specify with events in the commit action). Next, call this microflow using an action button in the control bar of a datagrid pointed at this entity. When you configure this action button, you will see that it passes in all rows of the datagrid (if the datagrid is configured for single select) or all selected rows (if the datagrid is configured for multiple select).
Hope that helps,
Mike