Hi all,
I'm trying to build a very simple query to filter a form on 3 fields. I placed my code in the form datasource in the executeQuery() method before super().
I'm having a hard time adding a FieldEnum to the range with it's value.
In my code below I have 3 variations I tried to no avail. I would greatly appreciate some help from the experts. Thanks very much.
Error message reads :
The expression '**insert one of the variations** cannot be resolved to a know type
Methods can only be called on classes and tables. This expression is of type 'int'
[Form] public class TestWarehouseStockIssuer extends FormRun { Query query = new Query(); [DataSource] class TestWarehouseStock { public void executeQuery() { QueryBuildDataSource qbds = query.dataSourceTable(tableNum("TestWarehouseStock")); qbds.addRange(fieldNum(TestWarehouseStock, PurchId)); qbds.addRange(fieldNum(TestWarehouseStock, PurchReqId)); **Below are the 3 variations** //qbds.addRange(fieldNum(TestWarehouseStock, Status).value(SysQuery::value(TestMIMStatus::Available))); //qbds.addRange(fieldNum(TestWarehouseStock, Status).value(QueryValue(TestMIMStatus::Available))); //qbds.addRange(fieldNum(TestWarehouseStock, Status).value(enum2Int(MIMStatus::Available))); super(); } } }