hi
I have a AOT query with 1 datasource. I want to change the query range if projid='' and serviceId !''.
In the datasource init() I have this code, but I dont get the required result.
public void init()
{
QueryBuildDataSource qbds;
QueryRun qr;
super();
qbds = this.query().dataSourceName('ServiceInvoiceLine_2');
qr = new QueryRun(this.query());
while(qr.next())
{
if(ServiceInvoiceLine_2.Projid != '' && ServiceInvoiceLine_2.ServiceOrderid == '')
{
qbdsTimeLine.addRange(fieldNum(ServiceInvoiceLine, ServiceOrderid)).value('!""');
qbdsTimeLine.addRange(fieldNum(ServiceInvoiceLine, Projid)).value("");
qbdsTimeLine.addRange(fieldNum(ServiceInvoiceLine, jobid)).value('!=""');
}
}
}
*This post is locked for comments
I have the same question (0)