General X++ Development
How do I add a range to a form datasource query?
How do I add a range to a form datasource query?
1 answer
Write an answerUse the datasource's QueryBuildDataSource.
QueryBuildDataSource qbds = MyTable_ds.queryBuildDataSource();
QueryBuildRange range;
range = qbds.addRange(fieldNum(MyTable, Status));
range.value(queryValue(MyStatus::Open));
MyTable_ds.executeQuery();Nothing fancy here: add the range, set the value, then rerun the datasource query.
Know the solution?
Sign in to contribute an answer and build your community reputation.
Sign in to answer