Microsoft Dynamics 365 is a Microsoft's Application that combines components of Enterprise Resource Planning (ERP) and Customer Relationship Management (CRM) With different productivity app and Artificial Intelligence tools.
Wednesday, July 29, 2020
Refresh Datasource Of Caller Form D365
Step 1: fill dataSource property of manueButton


(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
Subscribe to:
Comments (Atom)
Change SSRS Report Design Based On Condition , D365 ,X++
To change Sales Invoice control document's design based on condition use following code. Here I have created COC of salesInvoiceControl...
-
To Lock r hide range on the form we have Status method of QueryBuildRange public void executeQuery() { QueryBuildDataSource qbd...
-
You can schedule a batch job from front end as well as through coding This Post provides you the code for scheduling Batch Job through X++...
-
write this code in the OnLookup event handler after your lookup code. FormControlCancelableSuperEventArgs ce = e as FormControlCancelableS...