Override records to be included query values and assign new query range values in d365 fo

Get the caller Query from Controller class and apply filter for the called query....in Main method of the report controller class.


         Query q = Controller.getfirstQuery();

        q.dataSourceTable(tableNum(QueryTable)).clearRanges();

        q.dataSourceTable(tableNum(QueryTable)).addRange(fieldNum(QueryTable,FieldName)).value(someValue);




No comments:

Post a Comment