Wednesday, July 29, 2020

Introduction to Dynamics 365

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.





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


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...