I want to make an extension to the RetailAddItems form to include a custom field, "Test." Other methods in the code for this form call inventTable_ds.executeQuery();, but I can't figure out how to access inventTable_ds in my extended class. Is there another call I could make to retrieve the data for this query? Ultimately, I want to limit the products which show up based on the value of "Test" I pick, as "Test" is a custom field in InventTable.
[ExtensionOf(formControlStr(RetailAddItems, Test))]
final class RetailAddTest_Extension
{
public boolean modified()
{
Query query = new Query();;
boolean ret;
QueryBuildDataSource queryBuildDataSource;
FormDataSource ds;
FormStringControl obj = any2Object(this) as FormStringControl;
FormRun fr = obj.formRun() as FormRun;
queryBuildDataSource = query.addDataSource(tableNum(InventTable));
Query.datasourcetable(tableNum(InventTable)).addrange(fieldNum(InventTable, Test).value(obj.text());
ret = next Modified();
return ret;
}
[Control("String")]
class Vendor
{
public boolean modified()
{
boolean ret;
ret = super();
inventTable_ds.executeQuery();
ecoResProduct_ds.executeQuery();
return ret;
}
}
