Hi Wang,
Based on your screenshots, I suspect the issue is related to the lifecycle of your non-persistable helper objects and the Data Grid 2 data source, rather than browser caching alone.
Your current flow deletes GridCheck_HelpList and Help_Pagination, closes the page, and immediately opens MyTask again. Since your grid displays App_Check objects through an association with these helper objects, reopening the page does not necessarily guarantee that the grid is using a completely new set of helper objects.
Mendix maintains non-persistable objects in the client state, and page parameter objects can remain available for browser history even after a page is closed.
1. Create fresh helper objects when reopening the page
Instead of relying on deleting the existing helpers and reopening the page, create a new Help_Pagination object and new GridCheck_Help objects after the batch operation.
Help_Pagination object.App records.GridCheck_Help objects for the records.Help_Pagination object.MyTask using the newly created Help_Pagination object as its page parameter.This ensures that the page starts with a fresh selection context instead of relying on previously displayed helper objects.
Your screenshot shows that Data Grid 2 uses an association-based data source.
If you modify the underlying records during batch processing, make sure the grid's data source is reloaded after the operation. Mendix documents that widgets using data sources may continue displaying previously loaded data unless the relevant data source is refreshed.
If you use a microflow to perform the batch operation, check the Refresh in client setting on the relevant Commit/Delete activities where available.
For nanoflows, this setting is not configurable on Delete Object; changes are reflected in the client as the nanoflow executes.
The fact that Ctrl + F5 displays the correct records suggests that the issue may be related to client-side state or data-source refresh timing. However, it does not prove that browser caching is the root cause.
You should be able to handle this through the application's object lifecycle and refresh logic without asking users to reload the browser manually.
I would start by changing the end of your batch-operation flow to:
Batch operation completed
|
v
Retrieve latest App records
|
v
Create NEW Help_Pagination
|
v
Create NEW GridCheck_Help objects
|
v
Associate helper objects
|
v
Show MyTask with the NEW page parameter
Do not reuse the old Help_Pagination or its associated selection objects.
If the grid still displays stale data, the next step is to inspect the Data Grid 2 data source and verify whether it is being executed again when the page opens.
Reference: Mendix documentation: Non-Persistable Objects and Garbage Collecting
Hope this helps.