General X++ Development
How do I refresh a form control in X++?
How do I refresh a form control in X++?
1 answer
Write an answerMost of the time, you should refresh the datasource or underlying field instead of trying to force one control to repaint.
For a bound value:
MyTable_ds.refresh();If the database value changed outside the current buffer:
MyTable_ds.reread();
MyTable_ds.refresh();If you are changing control properties such as visibility or enabled state, set those properties directly on the control.
Know the solution?
Sign in to contribute an answer and build your community reputation.
Sign in to answer