Navision, Emailing report with parameter for request form

dianecandice
Member Posts: 11
Hi,
I have a report that shows a particular section via a checkbox (l_checkbox) in the report's request form.
I want to convert this report to pdf and email it using this line
runmodal(reportid, FALSE, TRUE, table)
my question is, how do i pass a value to the checkbox in the requestform before runmodal is called, if the requestform should not be opened in the first place?
diane
I have a report that shows a particular section via a checkbox (l_checkbox) in the report's request form.
I want to convert this report to pdf and email it using this line
runmodal(reportid, FALSE, TRUE, table)
my question is, how do i pass a value to the checkbox in the requestform before runmodal is called, if the requestform should not be opened in the first place?
diane
0
Comments
-
You shouldn't use runmodal instead create a global variable for that report.
In the report create a function to set the value of that bolean.
Myreport.setvariable(true)
Myreport.setrequestform(false);
Myreport.settableview(mytable);
Myreport.runmodal;0 -
Hi,
thanks for the reply, but without using runmodal(,,,)
how do you sendthe report directly to the system printer (as the third parameter in the runmodal does) instead of the printer selected through the Printer Selection table?
diane0 -
Because in this example you can set to not use the requestform, the report will be send to the printer directly. Which printer it will be depend on printer selection table or on your default printer selection in Windows...0
-
ok, got it! thanks to you both0
-
can you please tell me , how to Pass Report ID to "MyReport" variable. In My case I am using Data item as Integer, so I cant use Report. Run(ReportID,False,true,RecInteger).
Data item :
Integer
Integer
Calling report :
MyReport.USEREQUESTFORM(FALSE);
MyReport.RUN();
Question : how to Pass Report ID from setup to "MyReport" variable. ](*,)
Thanks
Senthil0
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