OnPostReport Location

suttons27
Member Posts: 5
Hi,
I am looking for the OnPostReport Trigger, I do not see any Report Triggers, only section & dataitem triggers. Is there a hotkey or a menu item I am overlooking?
I purchased the book Microsoft Dynamics NAV 2009: Professional Reporting, it references this trigger but does not explain how to access it.
The reason: I am trying to use CurrReport.NEWPAGE to create a blank page after a Sales Invoice. I have placed CurrReport.NEWPAGE in several sections and data item triggers, and it places a blank page, but then it either 1 to 100s after the blank page, depending where I put it.
So I would like to create this newpage after the invoice has finally ran. The new page will be used to Thank the customer and put a survey link on it, and we would like a separate page for that.
Thanks in advance
I am looking for the OnPostReport Trigger, I do not see any Report Triggers, only section & dataitem triggers. Is there a hotkey or a menu item I am overlooking?
I purchased the book Microsoft Dynamics NAV 2009: Professional Reporting, it references this trigger but does not explain how to access it.
The reason: I am trying to use CurrReport.NEWPAGE to create a blank page after a Sales Invoice. I have placed CurrReport.NEWPAGE in several sections and data item triggers, and it places a blank page, but then it either 1 to 100s after the blank page, depending where I put it.
So I would like to create this newpage after the invoice has finally ran. The new page will be used to Thank the customer and put a survey link on it, and we would like a separate page for that.
Thanks in advance
0
Comments
-
Go to the last dataitem and then cursor down to get onto a blank line and then press F9 to get to the code - you will the find the trigger0
-
Thanks that worked, so I just learned CurrReport.NEWPAGE can not be used as a Report Trigger.
I have found Report.RunModal(Report #, False, False, Record Number)
I have created a new report 50008
Report.RunModal(50008, False, True) works great, except I have to enter in the Record # (happens to be the SOxxxx) into the filter and it pulls up my Thank You Report and Survey with correct data.
How do I autofill Report.RunModal(50008, False, False, XXXX) the XXXX part with the "SOxxxx" # dynamically0 -
The 4th parameter is not record number but is an actual record. You should apply a filter on the record and then pass the record as the 4th parameter. You could use setrecfilter if you are filtering on a single record...
"http://msdn.microsoft.com/en-us/library/dd301127.aspx"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