General X++ Development
How do I refresh a form datasource after updating a record in X++?
How do I refresh a form datasource after updating a record in X++?
1 answer
Write an answerUsually, if you updated the current record and want the form to show the database value again:
myTable.update();
MyTable_ds.reread();
MyTable_ds.refresh();If the actual result set needs to be rerun:
MyTable_ds.research(true);Do not automatically call refresh(), reread(), research(), and executeQuery() together. Use the one that matches what changed.
Know the solution?
Sign in to contribute an answer and build your community reputation.
Sign in to answer