public void init() { QueryBuildRange criteriaOpen; ; super(); criteriaOpen = this.query().dataSourceTable(tableNum(ProdTable)).addRange(fieldnum(ProdTable, ProdStatus)); criteriaOpen.value("Started"); // it does not work in non-English interface!!! criteriaOpen.value(enum2str(ProdStatus::StartedUp)); // not enough good...
criteriaOpen.value(QueryValue(ProdStatus::StartedUp); // now it is correct!
}
3 comments:
Hi Alexey,
just use this syntax to pass values to query ranges (doesn't matter which data datatype):
criteriaOpen.value(SysQuery::value(ProdStatus::StartedUp));
The rest is being done in the SysQuery class.
Cheers,
Enrico
The right solution is:
criteriaOpen.value(QueryValue(ProdStatus::StartedUp);
Thank you guys for your hints! I corrected the original post.
Post a Comment