Hi all,
I am creating a report to show item's inventory based on location, here i want to calculate the total of quantity for items under two locations called "Main Store" and "Production".
so i have written the following code but its calculating the total for all locations.
My report is having one data item called "Item" and i have written the code under OnAfterGetRecord trigger.
SETFILTER("Location Filter",'%1|%2','MAIN STORE','PRODUCTION');
CALCFIELDS(Inventory);
TotalQty := Inventory;
what is wrong with the code.
0
Answers
Result is 8.
Result is 14.
the rest on aftergetrecord trigger.
http://midynav.blogspot.com/ (Microsoft Dynamics Navision)
The code is working fine under OnAfterGetRecord Trigger also,
actually i had written SETRANGE("Location Filter") after SETFILTER thats why it was not working
thanx u all for the reply