Need Help – Mendix Refresh Issue (10.18.1)

0
Here is the issue.I have 2 dynamic data grid widgets where in 1st widget, I have a combo box which has an enum 'Y/N' as an attribute in 'Location department' entity. The 2nd dynamic data grid widget is first bounded in a list view of 'Selected department' entity and the data source of dynamic data grid is a nanoflow where we retrieve the list of 'program location resource' and return the same. Now my requirement here is whenever I change the dropdown from Y to N or N to Y, the 2nd dynamic data grid should update the cells for which there is a microflow called on the on change event of Combo box. The logic is working properly.. But the only thing is it is not reflecting the values immediately. I have to reload the page to see the updated values in the 2nd dynamic data grid. However, the dropdown is getting changed and updated immediately upon click and without reloading. How can I fix this in Mendix 10.18.1? I have tried these things. None of them helped resolving.refresh in client in the onchange of the microflowcalling a nanoflow instead of microflow and tried calling the original microflow and returning the list and committing the object and refreshing in clientThere is a tab page selector widget getting used in the page. I have tried the option 'Refresh on Show" = Yes.
asked
1 answers
0

Hi Vandhana Bheesetti


Replace the Nanoflow Datasource on the Inner DDG with a Microflow Datasource: Nanoflow data sources on the inner DDG are running client-side and won't automatically react to server-side commits. If you switch the DDG's data source to a microflow, then a "Refresh in Client" on the ProgramLocationResource entity in your onChange microflow will force it to re-execute.

Steps:

  1. Convert the nanoflow data source on DDG2 to a microflow data source with the same retrieval logic
  2. In your onChange microflow, ensure the last action is a Change Object / Commit on ProgramLocationResource objects with Refresh in Client = Yes

A microflow data source will be re-run whenever the data widget is refreshed — and refreshing is triggered when the objects it depends on are committed with Refresh in Client = Yes.

answered