21 August 2020

Working with the calling object of a formcaller in d365FO

 FormRun formRun = this.parmArgs().caller();        

 ProjTable projtable = this.parmArgs().record();


        if((formRun) && (formRun.name() == Formstr(ProjTable) || formRun.name() == Formstr(ProjProjectsListPage)))

        {

            SrsReportHelper::addParameterValueRangeToQuery(this.getFirstQuery(),tableNum(PurchTable),fieldNum(PurchTable, ProjId),SysQuery::value(projtable.ProjId));

        }

No comments:

Post a Comment

Give me the commetns and solutions

How to add the Display method in the form level in D365 F&O

 The below examle is to add the form -Data source level adding display method and assigning to form design control.