Hi,
I have on problem, I need to filter the item table from the result of filtering other table.
The code is this, I am trying to avoid the "ItemFilter" variable.
IF (Rec."NO ProdGruppe" <> '') AND (Rec."Item No." = '' ) THEN BEGIN
Group.RESET;
Group.SETRANGE(Group,Rec."NO ProdGruppe");
IF Group.FINDFIRST THEN BEGIN
Paragraph.RESET;
Paragraph.SETRANGE("Reimbursement Paragraph",Group."Reimbursment Paragraph");
IF Paragraph.FINDSET THEN
REPEAT
IF ItemFilter <> '' THEN
ItemFilter += '|'+Paragraph."Item No."
ELSE
ItemFilter := Paragraph."Item No.";
UNTIL Paragraph.NEXT = 0;
Product.SETFILTER("Product ID",ItemFilter);
SearchPage.LOOKUPMODE(TRUE);
SearchPage.LoadRecords(Product,Item,Rec."Type of Pick");
in the loadrecords I have a copyfilters from Product then I open the page with the result of the filter of copyfilters.
does anyone knows a way to do this?
0
Answers
Then set markedonly(true) to this record before running the lookup page.
Settableview first.
Thanks anyway