||REFRESH PARENT FORM on CLOSING THE CHILD FORM ||
Many times we get the requirement to refresh the main parent form or the calling form to be refreshed once the called form or the child form is closed,
Below code needs to be written on the child form method in order to do the same.
public void close()
{
FormRun formRun;
FormDataSource formDatasource;
super();
// Get an instance of the calling form.
formRun = element.args().caller();
if(formrun)
{
formrun.doResearch(); // Force all parent form data sets to refresh
}
}
Thanks,
Vikas Mehta
It was a great information. Thanks for sharing.
ReplyDeleteD365 Finance and Operations Training
D365 Finance and Operations Online Training
D365 Finance Training
D365 Operations Training