Refreshing the Client

Hi, I have a grid view based on an entity. I have an unrelated drop down box at the top of the page (in a seperate data view) to choose a year. When the drop down box changes I have a microflow triggered that should delete the contents of the entity and repopulate it with data for the correct year. However, none of this is refreshing in the client. I am committing (not an option for the delete objects activity) and refreshing in client, but still the page doesn’t update. I am very new to mendix so probably missing a major trick, but does anyone have any ideas that might help me with this? Thanks, Steve
3 answers

Do you also refresh your page parameter? You should refresh the object of the dataview that contains the datagrid. Maybe you can put the datagrid inside the dataview that contains the dropdown and refresh the object of that dataview? This will trigger the datasource of the datagrid again.


Hi Steve Bosher,

You can design your page with data-grid inside the data-view, if possible relate your data-grid entity with an association to the data-view entity. Configure the datasource of your data-grid with xpath or an association.

So whenever you select the dropdown value of your data-view object in the onChange microflow do an association update based on your need and refresh the data-view object.

Hope this works for you, Thanks!



Not sure if this would work but could you try closing and opening the page again in the miroflow