I am having a problem with the report below. ](*,)
I need to have this report
SORT/PRINT the ITEMS in ASCENDING order instead of by Line No.
I have tried creating Keys with
Document Type,Document No.,Type,No. on the Sales Lines table and setting properties for Sales Lines in this report to
SORTING(Document Type,Document No.,Type,No.) ORDER(Ascending) to no avail.
I have also tried several other key combinations and nothing seems to work.
:!:
New forum software seems to max out at 60,000 characters per posting so here is my report code via a link:http://www.webfixnow.com/navicoding/rpt50003.txt
Answers
Your report is printing the sales line from the RoundLoop dataitem. This is using a variable TempSaleLine - you will need to set the key on this to sort the lines.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Thanks.
use TempsalesLine.setcurrentkey( "Document Type",Type,"No.","Variant Code","Drop Shipment","Location Code","Shipment Date" ); and it should work
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
This code worked -> //ADDED on 10-14-2008 22:15
TempSalesLine.SETCURRENTKEY( "Document Type",Type,"No.","Variant Code","Drop Shipment","Location Code","Shipment Date" );
Thank you much.
Thanks.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html