report and DataItemTable

cfv
Member Posts: 19
Hello,
In a codeunit, how can I identify on which tables a report is based on ?
I know the report ID and before opening it, i want to be sure that this report is based on the table i want to pass in parameters.
In this example :
how to be sure that the report I want to open is based on the table ptr_doc ?
(REPORT.RUNMODAL(SelEtat."ID état",TRUE,FALSE,Ptr_doc).
Thanks a lot for your help.
In a codeunit, how can I identify on which tables a report is based on ?
I know the report ID and before opening it, i want to be sure that this report is based on the table i want to pass in parameters.
In this example :
how to be sure that the report I want to open is based on the table ptr_doc ?
(REPORT.RUNMODAL(SelEtat."ID état",TRUE,FALSE,Ptr_doc).
Thanks a lot for your help.
0
Comments
-
You can't.
But if you could, what would you do?
Now if someone changes the dataitems in a report you are calling from a codeunit, you will receive an error.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
I think it would have been interessant to to this control before openning a report. If it's not possible, no matter.
I've created an "Universal document" which can editate sales quotes, sales order or invoiced sales. This dataitem is not based on the table "sales header" or the table "sales invoice header". As this report is not used in all the companies i want to do this control for example in the codeunit 229 "Document-Print" in order to pass the good table in parameters.
Thank you.0 -
Ok. Thanks for explaining why you would want it.
That makes it clear.
Tino Ruijs
Microsoft Dynamics NAV specialist0
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