General X++ Development
How do I add a range to a QueryBuildDataSource in X++?
How do I add a range to a QueryBuildDataSource in X++?
1 answer
Write an answerAdd a QueryBuildRange to the datasource and set its value.
QueryBuildRange range;
range = qbds.addRange(fieldNum(CustTable, AccountNum));
range.value(queryValue('US-001'));For normal single values, use queryValue() or SysQuery::value() so the value is formatted correctly for a query range.
Know the solution?
Sign in to contribute an answer and build your community reputation.
Sign in to answer