I am combining 2 reports in Navision Attain. Both reports are using Item table; one is sorted by “No.” and the other by “Inventory Posting Group”. I named the DataItemVarName as Item and Item1. The ReqFilterFields are setup from DataItemVarName: Item.
In Item1, I have problem when capturing all the filters from DataItemVarName: Item.
OnPreDataItem() I put:
Item. COPYFILTERS(Item1); // this copyfilters doesn’t work.
But, if I put the filter one by one, it's working but it’s not effective to do it this way
Item.COPYFILTER("No.",Item1."No.");
Item.COPYFILTER("Inventory Posting Group",Item1."Inventory Posting Group");
Item.COPYFILTER("Location Filter",Item1."Location Filter");
Item.COPYFILTER("Date Filter",Item1."Date Filter");
Item.COPYFILTER("Customer Filter",Item1."Customer Filter");
Etc…….
What did I missing?
Thanks
ZB