In most cases, Developers will find it really hard to decide whether they should either Research (or) Reread while dealing with refreshing the data in the form after the data is changed in a process in Dynamics AX. The AX framework has the following methods that will help in refreshing the data in form.
This method will read all the data again from the database that are present in the form grid. So if there are 100 records in the form, all 100 records will be read from database with latest values.
This method will read only the current record where the cursor is placed in a grid. So if there are 100 records in the form, only the current record will be read from database with latest values.
This method will refresh the data in the form which are read using Research and Reread.
The Concept behind using the Research and Reread is that they can’t be used without Refresh because the data will not be refreshed without a call to Refresh. Below are the possible combinations while refreshing the data after a process in a form are below,
“True” in the final code snippet indicates that the cursor will be in the same record after refreshing all the records in the form grid.