How to set the Print button in a Form to call a Report.
billhwang2008
Member Posts: 32
Hi,
I'm a newcomer to Navision, now, I have a problem in Navision 4.0 as below:
As kenw that Purchase Order Form has a Print button, if click the button, the Form will call the Purchase Order Report to print it. In this way, I created a new Form and a new Report , add a Print button on the Form, but I don't know how to set the button to all the Report?
Any help appreciated!
Bill
I'm a newcomer to Navision, now, I have a problem in Navision 4.0 as below:
As kenw that Purchase Order Form has a Print button, if click the button, the Form will call the Purchase Order Report to print it. In this way, I created a new Form and a new Report , add a Print button on the Form, but I don't know how to set the button to all the Report?
Any help appreciated!
Bill
0
Comments
-
Right click on the original button & look at the C/AL Code onPush() Control.NAV - Norton Anti Virus
ERP Consultant (not just Navision) & Navision challenger0 -
Thank you all very much!
To idiot:
I right click the Print button, but the C/AL Code is not available, is it mean no license to support?
To Belias:
I am reading the manual: 8359B DEVELOPMENT I − C/SIDE INTRODUCTION TRAINING, is it more helpful? and, I wonder if you could recommend some better books.
Best regards.
Bill0 -
Ok for the manual: in the "Designing Reports" chapter, you'll find a lot of info about your problem.
About c/al code: it's a license problem, try with the property, but in order to develop, you need a developer license
oh, wait...are you in design mode? (object designer, click design while selecting your form)
I can't suggest you other books, because i only read MOCs in order to get certifications...for the rest, i am learning day by day while working.
but you can go to general chat section in mibuso, there's a topic about books there0 -
Belias wrote:Ok for the manual: in the "Designing Reports" chapter, you'll find a lot of info about your problem.
About c/al code: it's a license problem, try with the property, but in order to develop, you need a developer license
oh, wait...are you in design mode? (object designer, click design while selecting your form)
I can't suggest you other books, because i only read MOCs in order to get certifications...for the rest, i am learning day by day while working.
but you can go to general chat section in mibuso, there's a topic about books there
Yes, I am in design mode
, now, I solved it by your method, thank you very much.
And, there is a new problem: the Request Form cannot get the Order's No. automatically, does it need to add the C/AL codes in Report? I read the codes of several Reports, just like "Purchase Order", "Return Order", etc., but I'm not so sure.0 -
On push what's your code??
is it something like this?
RESET;
PurchHeader.SETRANGE("Document Type","Document Type");
PurchHeader.SETRANGE("No.","No.");
REPORT.RUNMODAL("your report#",TRUE,FALSE,PurchHeader);0 -
Savatage wrote:On push what's your code??
is it something like this?
RESET;
PurchHeader.SETRANGE("Document Type","Document Type");
PurchHeader.SETRANGE("No.","No.");
REPORT.RUNMODAL("your report#",TRUE,FALSE,PurchHeader);
Thanks a lot for your reply.
I did not find the OnPush in Report's C/AL code, is it Print button's C/AL code in the Form? But I haven't the license.
0 -
Did you just want to change the report that prints out? what was the need to create a whole new form?
If it's about just the report - have you thought about changing the report selection.
Search tables for "Report*" for me it's 770 -
It's OK now
, thank you all for your replies. 0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions