O
Orchid Corpin
Guest
Hi, Dependent lookup seems to be not working on grid control but I have alternative way to make it work by using "rbf_setLookupFilter". 1. Go to Configure grid and set the onUpdate with your function in my sample is filterLookup(@@); 2. Save. Apply rbf_setLookupFilter in the script component with sample code below. Change the following codes: R111029 -- Parent lookup (Warehouse) in grid, inspect element to get the integration name. R130928 -- Dependent lookup (Product) in grid, inspect element the lookup to view integration name. See image R56036 -- This is an integration name of parent (warehouse) from Product Object. In my test, go to Product object definition and get the value of warehouse lookup integration name. script function filterLookup(rowIndex) { var parentId = rbf_getGridValue2(0, "R111029", rowIndex); console.log(parentId); rbf_setLookupFilter("R130928_0_"+rowIndex, "R56036", parentId); } /script Hope this may help. Regards, Orchid
Continue reading...
Continue reading...