Query Filter in form
In new form->write a method in DS->
void filterOnVendTable()
{
QueryBuildRange vendorAccountFilter;
;
vendorAccountFilter = this.query().dataSourceNo(1).addRange(fieldnum(VendTable, AccountNum));
vendorAccountFilter.value("3000..3010");
}
____
Call this method in DS->Init()
public void init()
{
super();
this.filterOnVendTable();
}
void filterOnVendTable()
{
QueryBuildRange vendorAccountFilter;
;
vendorAccountFilter = this.query().dataSourceNo(1).addRange(fieldnum(VendTable, AccountNum));
vendorAccountFilter.value("3000..3010");
}
____
Call this method in DS->Init()
public void init()
{
super();
this.filterOnVendTable();
}
No comments:
Post a Comment