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.
Following is my code. but doesn't work. can anyone suggest? Thanks in Advance
Bin1.RESET;
Bin1.SETRANGE("Location Code",LocationCode);
Bin1.SETRANGE(Blocks,FALSE);
IF BinContent.FINDSET THEN
REPEAT
BinContent.SETRANGE(BinContent."Item No.",ItemNo);
Bin1.SETRANGE(Code,BinContent."Bin Code");
BinContent.SETRANGE("Bin Code");
UNTIL BinContent.NEXT = 0;
IF PAGE.RUNMODAL(0,BinContent) = ACTION::LookupOK THEN
EXIT(BinContent."Bin Code");
*This post is locked for comments