I'm running a report over the sales line table and grouping outstanding open quantity by item. Currently the report sorts on item number. However, I am also pulling in the "Special Equipment Code' value from the item master. I'd like to sort/group all of the items by Special Equipment Code so that I can then display the total open sales quantity for each "special equipment code" value. Is this possible?
0
Comments
For example first DataItem is
-Item sorting by "Special Equipment Code" (if this key exist) group by "Special Equipment Code"
-- Sales Line linked with Item where SalesLine.Type = Item and No. = Item.No
Now you can create goup Header and group footer and create totals for your field (outstanding quantity).
Regards
You will have to do a number of things:
1. select (create if needed) a key with special equipment code as the primary part in the item dataitem
2. put special equipment code in the grouptotalfields property
3. put the line of code currrreport.createtotals( "sales line"."outstanding quantity" ); in the onpredataitem trigger of the item dataitem
4. Add a groupfooter to the item section and just put in "sales line"."outstanding quantity"
The report will do the totalling for you and will even give you a grand total if you put it into the footer section of the item dataitem.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
So please set the Attribute: Solved in your forst post.
Regards