Hello there experts, I’m just wondering why Inventory wasn’t calculating when I used the Location Filter.
Here is my code listing. ItemRec is local variable, Item.”No.” is a report DATAITEM.
ItemRec.RESET();
IF ItemRec.GET( Item."No." ) THEN BEGIN
ItemRec."Location Filter" := 'GREEN' ;
ItemRec.CALCFIELDS(Inventory)
retInventoryBalance := ItemRec.Inventory;
END;
Any ideas why is not considering my “Location Filter”.
Thanks a lot.
0
Answers
It doesn't look like a filter. It looks like you're defining "Location filter" as GREEN -> :=
unless you want to use find & setfilter's?
http://www.BiloBeauty.com
http://www.autismspeaks.org
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
To this i want to know if i want only those records from Item where location contains work green. For example GREEN-Stock or Stock-Green.
I kNow i cannot use @*Green* in this case because it works only with field type code or text.