You just pass the modified QueryRun instance there. Use cross-references if you want some real-world examples (it’s used by SysOperationAutomaticUIBuilder.modifyCollectionDialogField(), for example.
Nevertheless I’m not sure how it’s related to your lookups for sites and warehouses. If you need additional assistance, please explain to us what you’re doing.
Thank you very much,My English is poor.i am developing Dialog(Class) for inquire Sales order by site and warehouse### first condition is site,second condition is Warehous### When selecting the site after the first condition , How the value of the first condition to the second condition display (warehouse) the contents of the ?
22:00 more than ( Beijing time ) , I have to rest , good bye!
This requirement isn’t implemented by SysLookupMultiSelectCtrl, you just have to add a range to the query for warehouses with the value of the selected site. How to: Add a Lookup Form to a Control shows an example of a range in a lookup query.
You may need different strategies for getting the selected site, depending on how you’ve implemented the dialog (e.g. this.bindInfo().getDialogField*(…)* in a SysOperationUIBuilder).
Hi Frank,
I am pretty sure that you found the solution. I just had to deal with the same issue and wanted to share my solution. You just need to modify the query from the queryRun object you passed into the SysLookupMultiSelect object:
Form init method:
locationQueryRun = new QueryRun(query);
msCtrlLocation = SysLookupMultiSelectCtrl::constructWithQueryRun(element, FilterInventLocationId, locationQueryRun);
modified method on InventSiteId:
query = locationQueryRun.query();
qbds = query.dataSourceTable(tableNum(InventLocation));
qbds.clearRange(fieldNum(InventLocation, InventSiteId));
…
qbds.addRange(fieldNum(InventLocation, InventSiteId)).value(SysQuery::value(siteId));
…
msCtrlLocation.refreshQueryRun(locationQueryRun);

