Hello,
In this post you will find a code sample to run multiple Query Value to one Query Range.
You have two options:
Option 1: Add multiple ranges.
QueryBuildDataSource qbds = q.dataSourceTable(BOMTable);
QueryBuildRange qbr;
while (...)
{
qbr = qbds.addRange(fieldNum(BOMTable, BOMId));
qbr.value(queryValue(BOMVersion.BOMId));
}
Option 2: Add multiple values to one range separated by comma.
QueryBuildRange qbr = q.dataSourceTable(BOMTable).addRange(fieldNum(BOMTable, BOMId));
container c;
while (...)
{
c+= queryValue(BOMVersion.BOMId);
}
qbr.value(con2str(c));
No comments:
Post a Comment