QueryBuildDataSource myTableQbds = myTable_ds.queryBuildDataSource(); myTableQbds.addRange(fieldNum(MyTable, MyField)).value(queryValue('001')); myTableQbds.addRange(fieldNum(MyTable, MyField)).value(queryValue('002')); myTableQbds.addRange(fieldNum(MyTable, MyField)).value(queryValue('003'));
Hi Martin,
Yes, I understand how to add ranges. The examples I provided—001, 002, 003—were merely illustrative.
My main concern is that "Table 1" could contain any number of employee IDs. I want "Table 2" to filter out all the employee IDs present in "Table 1."
Currently, if I Override an execute query in Table 2 like this:
this.query().dataSourceTable(tableNum(table2)).addRange(fieldNum(table2, empid)).value(queryValue(Table1.Empid));
it only filters out a single employee ID from Table 1, rather than all relevant employee IDs.
Could you please advise on how to achieve the desired filtering?
Thank you!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 756 Super User 2025 Season 2
CA Neeraj Kumar 678
Martin Dráb 526 Most Valuable Professional