Hi I want to change a Query Range. How can I do it??
public void executeQuery()
{
Query purchLineQuery, purchTableQuery;
QueryRun purchLineQR;
;
purchLineQuery = PurchLine_ds.query();
purchLineQuery.dataSourceNo(1).addRange(fieldnum(purchLine, ItemId)).value(“00024”);
purchTableQuery = PurchTable_ds.query();
purchLineQR = new QueryRun(purchLineQuery);
while(purchLineQR.next())
{
purchLine = purchLineQR.get(tableNum(PurchLine));
purchTableQuery.dataSourceNo(1).addRange(fieldnum(purchTable, PurchId)).value(PurchLine.PurchId);
}
purchLineQuery.dataSourceNo(1).addRange(fieldnum(purchLine, PurchId)).value(“PO-013330”); // <------ ##LOOK HERE
PurchTableQR = new QueryRun(purchLineQuery);
while(PurchTableQR.next())
{
purchLine = purchTableQR.get(tablenum(PurchLine));
}
super();
}