How can I force a data grid to refresh after running a microflow that modifies the underlying data, without reloading the entire page?

0
I have a data grid displaying a list of orders. There's a button that triggers a microflow to update the status of some of these orders. However, after the microflow finishes, the data grid doesn't reflect the changes unless I manually reload the page. I tried using 'Refresh in Client', but it doesn’t seem to work. The grid is inside a data view that’s using a context entity. Is there a way to refresh just the grid and update the UI without forcing a full page reload?
asked
2 answers
0

Hey João,

You can create a helper entity to help you update Data Grid 2. Place Data Grid 2 inside a Data view with the helper entity object, and within the microflow, use this object as a parameter.

At the end of the microflow, you change the object and apply the refresh in client. This way, the grid data will also be updated.

image.png

 

Best Regards,

Ricardo Pereira

answered
0

Hi Joao,

 

To refresh just the data grid without reloading the entire page in Mendix, you have a few options:

 

Use 'Refresh in Client' on the Data Grid's Data Source: If the data grid is inside a data view with a context entity, 'Refresh in Client' on the data view might not refresh the grid because the grid's data source might be a list retrieved by a separate XPath or association.

Instead, try adding a Refresh in Client action directly on the list or the data grid's source entity after the microflow finishes.

 

Regards,

Saqlein 

answered