Filter Forms using x++ :
QueryBuildRange
BIT_queryBuildRangeSalesStatus;
public
void init()
{
super();
salesLine_ds.cacheAddMethod(tablemethodstr(SalesLine, invoicedInTotal));
salesLine_ds.cacheAddMethod(tablemethodstr(SalesLine,
deliveredInTotal));
salesLine_ds.cacheAddMethod(tablemethodstr(SalesLine,
reservedPhysicalInSalesUnit));
salesLine_ds.cacheAddMethod(tablemethodstr(SalesLine,
reservedOnOrderInSalesUnit));
salesLine_ds.cacheAddMethod(tablemethodstr(SalesLine,
onOrderInSalesUnit));
salesLine_ds.cacheAddMethod(tablemethodstr(SalesLine,
qualityOrderStatusDisplay));
BIT_queryBuildRangeSalesStatus =
this.query().dataSourceName('salesline').addRange(fieldnum(Salesline,
salesstatus));
}
public
void executeQuery()
{
BIT_queryBuildRangeSalesStatus.value(queryvalue(salesstatus::Backorder));
super();
}
0 comments:
Post a Comment