Hello everyone,
I am facing an issue in Dynamics 365 Finance and Operations (D365FO) version 40.
When I add a new column to a grid using the "Insert Columns" option, the controls below the grid, which are populated using display
methods, remain empty in version 40. This behavior is different from version 30, where the controls would automatically refresh and display the expected values.
To work around this issue in version 40, I have to manually refresh the form to see the values.
Details of the issue:
- I add a column to the grid via "Insert Columns".
- The controls below the grid, relying on
display
methods, do not update automatically (they remain empty). - In version 30, this issue did not occur, and the controls were updated immediately.
What I’ve tried:
- Manually calling
dataSource.refresh()
,dataSource.reread()
, andelement.design().refresh()
, but this hasn’t fully resolved the issue. - Checking the AutoRefresh properties of the affected controls.
My questions:
- Is there a specific solution or event to trigger the refresh of these controls without having to reload the entire form?
- Could this behavior be related to changes in the data lifecycle management between versions 30 and 40?
- Are there any best practices or approaches to handle this type of scenario?
-
Thank you in advance for your help and suggestions!
Version 30( after adding a column to a grid)
Version 40( after adding a column to a grid)