
i have Two Queries in my Report
and i want t use controller class to add range to them
i usually used this line to get the Query when i have only one Query
but now i have two
myQuery1 = this.parmReportContract().parmQueryContracts().lookup(this.getFirstQueryContractKey());
if (myQuery1)
{
myQuery1.dataSourceTable(tableNum(SalesReportView)).clearRanges();
myQuery1.addCompanyRange(curext());
}
is there any idea about this to use the two queries??
Thanks,
*This post is locked for comments
I have the same question (0)This has already been answered on the forum, have a look at it here:
community.dynamics.com/.../210102
You can fetch the query contracts, the lookup method indicates that it is a map, so you can assign the parmQueryContracts return value to a Map object, then just enumerate it with a mapEnumerator.