Object.ID at runtime....

arnaro
Member Posts: 29
Im new to Navision programming so please bear with me...
Anyways is it possible to catch the object.id for example of a report at run time?
- Arol
Anyways is it possible to catch the object.id for example of a report at run time?
- Arol
0
Comments
-
Yep. Declare a record variable representing the permission table. Using some simple filters on the object name and object type fields, you can determine the object ID.0
-
Hmmm...
That seems to give me another problem in catching the object.name.... in order to find the correct rec in the Objects table or what ?
What I need to do is have the report print its object.id on itself for external reference.
Like I said Im new to Navision so if Im complicating matters please point out to me which way would be the best to go about this...
Regards,
- Arol0 -
In Attain there is a new report property that contains the object ID: CurrReport.OBJECTID.0
-
Thanks for the pointer, but as most of our customers still use 2.6- that wont work for a while...
Regards
-Arol0 -
Hi Arol,
there is a table No 2000000038, which holds all the object-numbers and names. To have a look at, go the the Object Designer, choose Report - new and select the mentioned table and create a report, than you will see the field names and the content of them. Than you can write a little code our even a codeunit, when you need this function in several reports.
Michael
[ 26-02-2002: Message edited by: Quasimodo ]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