How to refresh a template grid with data source as microfllow

0
Hi, I have a template grid with data source as microflow, i have to refresh microflow based on some conditions then only  i will get my records properly. Anyone know how to do this? it would be helpful. Thanks and Regards, Srihitha.
asked
5 answers
1

Hi Srihitha,

 

You can refresh it by selecting refresh in client in change object activity in your microflow.

answered
0

Hi Srihitha,

 

Please check if the setting ‘refresh time (in seconds) on the General tab of your Template grid properties is what you are looking for. This will trigger the datasource microflow every X seconds and refresh in client.  

answered
0

Hello from the future ;D


I was looking for this a while ago, so I thought I'd post my solution.


You basically need to enclose your datasource microflow in a dataview (e.g. a helper entity with attributes used for filtering). Then call another microflow that will refresh the dataview entity, hence causing the datasource microflow to re-run.



Domain model






Dataview setup






DS_GetPoodles






ACT_Refresh



answered
0

Dear Srihitha,


You can Refresh the Data Source using the Helper Object.Use the helper in your microflow data source and trigger refresh when condition changes.


Regards,

Mohamed Rasik.N

answered
0

Hi Srihitha,

A microflow data source is executed only when the widget refreshes. You cannot “refresh the microflow” directly, but you can trigger a refresh indirectly.

Common ways to do this:

  • Change the page context object
  • If the Template Grid is inside a DataView, update/commit the DataView object (with Refresh in Client = Yes). This will re-run the microflow.
  • Use a helper (non-persistent) object
  • Store your condition values in a helper object and update it via a microflow. When the helper changes, the Template Grid refreshes and the data source microflow is executed again.
  • Close and reopen the page
  • This forces the microflow data source to run again (simple but less elegant).

Best practice

Use a helper object or page context object to control your conditions and refresh that object. This keeps the UI predictable and avoids unnecessary reloads.

answered