
(Note: If you are calling manue Item through code give datasource
in arguments through x++ Like this
Args args = new Args();
ProspectParentTable ProspectParentTable;
// super();
ProspectParentTable = ProspectParentTable_ds.cursor();
args.lookupRecord(ProspectParentTable);
args.caller(element);
args.openMode(OpenMode::Edit);
menuFunction menuFunction = new MenuFunction(menuitemDisplayStr(ProspectStudentCreate), MenuItemType::Display);
FormRun formRun = menuFunction.create(args);
formRun.run();
)
Step 2 : Paste the code where you want to refresh the datasource , here i am refreshing on ok button click of my child form.
public void clicked()
{
FormRun parentForm;
;
parentForm= element.args().caller();
parentForm.dataSource().refresh();
parentForm.dataSource().reread();
parentForm.dataSource().research(true);
super();
}
Step 3: Rebuild Project and check again
Reference video on How to refresh parent form's Datasource
No comments:
Post a Comment