Hi guys, I have a question about filtering. Here is a situation:
I filter Item table on product posting group:
Item.SETRANGE("Product Posting Group", 'Test');
And what I need now is to filter on Sales Shipment Line table to find all the lines where these items are used. So
SalesShipLine.SETRANGE(Type, SalesShipLine.Type::Item);
SalesShipLine.SETFILTER("No.", Item.GETFILTER("No."):
I have expected this to work, but appereantly GETFILTER does not work, because I have noy applied SETRANGE or SETFILTER on "No." field in Item table. Any ideas how to make it work?
0
Answers
Depending on how many items, this could be a working solution
NoFilter := ''; // to init value
REPEAT
NoFilter += Item."No." + '|';
UNTIL Item.NEXT=0;
to collect all item numbers instead if last one.
Am I right?
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!