bincode lookup fields gets the data from bincontents page. But it needs to be filered from a Boolean field name 'block' if its false from bin page. bincode is common for both bin and bincontents page.
For this scenario I got answer from the following link.
community.dynamics.com/.../271416
and the code is
In the BinContent table, add a flowfield called Bin Blocks defined as Lookup(Bin.Blocks WHERE (Location Code=FIELD(Location Code),Code=FIELD(Bin Code))).
Then, in your lookup:
BinContent.SETRANGE(BinContent."Item No.",ItemNo);
BinContent.CALCFIELDS("Bin Blocks");
BinContent.SETRANGE("Bin Blocks",FALSE); //TRUE or FALSE depending on the filter you want to apply
IF PAGE.RUNMODAL(0,BinContent) = ACTION::LookupOK THEN
......
But for same thing bincode lookup filed to filtered from another Boolean field name dedicated(i.e it should get filterered using two columns). Can anyone suggest?
*This post is locked for comments