On your ComboBox you should set the property EnumType to PurchStatus, So that the enum's elements are automatically added as entries.
Later in selectionChange Override method of the ComboBox apply this code :
public int selectionChange()
{
int ret;
QueryBuildRange range;
;
ret = super();
range=SysQuery::findOrCreateRange(PurchTable_ds.query().dataSourceTable(
tablenum(PurchTable)),fieldnum(PurchTable,PurchStatus));
range.value(queryValue(this.selection()));
PurchTable_ds.executeQuery();
return ret;
}
No comments:
Post a Comment