Hi Experts,
Below is a part of my code that I am using for one of my report. I need to add one more range in my query that to look only for the records in the CustTransTable with AmountMst >0. how can I add this range in my query. Please help.
queryBuildDataSource = query.dataSourceTable(tablenum(CustTrans));
if (_asOfdate)
{
queryBuildRange = queryBuildDataSource.findRange(fieldnum(CustTrans, TransDate));
if (!queryBuildRange)
{
queryBuildRange = queryBuildDataSource.addRange(fieldnum(CustTrans, TransDate));
}
if(!queryBuildRange.value())
queryBuildRange.value(queryRange(_fromDate,_asOfDate));
}
queryRun = new QueryRun(query);
while(queryRun.next())
{
_custTrans = queryRun.get(tableNum(CustTrans));
this.findTransactions();
}

Report
All responses (
Answers (