Button not printing correct item..

yuppicide
Member Posts: 410
Navision 3.10
Sales & Receivables -> Orders. On the print button there's stuff to print Picking Sheet, Sales Order, etc.
I didn't want to mess with one of the reports, so I copied it and modified it.
I went into the Menu Items of the Print button to add my report there, but it doesn't populate the No.
For example, if I am in Sales Order S131778 and I go to Print Sales Order, it will have that number populated in No. for me.
If I go to my print my report No. is left empty.
On the Menu Items it has for example Sales Order as caption, but under mine I put Sales Order Test, Action RunObject, RunObject Report Sales Order Test.
Do I need to do something different there?
Sales & Receivables -> Orders. On the print button there's stuff to print Picking Sheet, Sales Order, etc.
I didn't want to mess with one of the reports, so I copied it and modified it.
I went into the Menu Items of the Print button to add my report there, but it doesn't populate the No.
For example, if I am in Sales Order S131778 and I go to Print Sales Order, it will have that number populated in No. for me.
If I go to my print my report No. is left empty.
On the Menu Items it has for example Sales Order as caption, but under mine I put Sales Order Test, Action RunObject, RunObject Report Sales Order Test.
Do I need to do something different there?
0
Comments
-
Hi,
did you set the "RunformView" and the "RunformLink" properties?
In the Runformlink you map the "No." in your form to the "No." to be used in your report.
The RunformView can be used to select a key for the sorting.
You can use these properties to set the record in your report.
Let me know if this helps,
Regards,
WillyFostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.0 -
Are you adding a new report to the menu items or would you like to replace a report with your new report?
To replace you can goto sales & receiveables->setup->Report Selections Sales
there you can change the default report that comes up - with your new report.
If you wan't to add another report and have the "no." value automatically appear (for example)
you will need to write some code.
I usually add it to CU 229 Document-Print then call the CU from the menu item
SalesHeader.RESET;
SalesHeader.SETRANGE("Document Type",SalesHeader."Document Type");
SalesHeader.SETRANGE("No.",SalesHeader."No.");
REPORT.RUNMODAL(50060,TRUE,FALSE,SalesHeader);
where 50060 is your report #.. Without a dev license you'll have to ask your nav partner or hire someone to make the change for you, sorry to say.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions