There is any way to Filter Upper data source based on Lower One?
I want to filter data on Grid1 wich contain itemId from InventTable based on BOMQty on G2 from BOM Table
BOM Table is related to InventTable as follows:

Code:
queryBuildDataSource = BOM_ds.query().addDataSource(tableNum(BOM));
queryBuildDataSource = queryBuildDataSource.addDataSource(tableNum(InventTable));
queryBuildDataSource.relations(true);
queryBuildDataSource.addLink(fieldNum(InventTable, ItemId), fieldNum(BOM,ItemBOMId));
QtyQBR = queryBuildDataSource.addRange(fieldnum(BOM,BOMQty));
QtyQBR.value(queryvalue(SearchStringEdit.text())); // a filter field
BOM_ds.executeQuery();
when i run it i get the following error: "Les requêtes comptant plusieurs sources de données de niveau supérieur ne peuvent pas être appliquées aux écrans."
Thanks
*This post is locked for comments
I have the same question (0)