Hi Guys
I couldn't find a way to pass a SET of values to a filter. Setrange as the name says only takes a range. See below example:
ItemRec.Reset();
ItemRec.SetRange(MyValue, true);
if ItemRec.FindSet() then
Message('item found %1', ItemRec.Count());//found 2
PriceLine.Reset();
PriceLine.SetRange("Source Group", PriceLine."Source Group"::Vendor);
PriceLine.SetRange(Status, PriceLine.Status::Active);
PriceLine.SetRange("Source No.", Rec."Buy-from Vendor No.");
PriceLine.SetFilter("Asset No.", '=%1', ItemRec."No.");
if PriceLine.FindSet() then
Message('priceline found %1', PriceLine.Count());//found 1
Here I want to find a set of items and then filter PriceLine records if the item exist. (In new Pricing feature Asset No = Item No.)