NAV COM Interface: EnumTables/GetTable?

_Midnight_
Member Posts: 15
Hi NavGuys!
My first post, and my first question right away!
Currently I'm working with the COM Interfaces of nav. However, I got some problems, getting all existing objects.
Like the vtable 2000000038 shows....
I already had have a look at this:
viewtopic.php?f=23&t=32059
So, is the best (and of course, fastest) method using EnumTables or GetTable(2000000038) ???
Would be gratful for some coding examples!
My first post, and my first question right away!
Currently I'm working with the COM Interfaces of nav. However, I got some problems, getting all existing objects.
Like the vtable 2000000038 shows....
I already had have a look at this:
viewtopic.php?f=23&t=32059
So, is the best (and of course, fastest) method using EnumTables or GetTable(2000000038) ???
Would be gratful for some coding examples!
0
Comments
-
Hi _Midnight_, if you could post a sample of your code then I can tell you what you might be doing wrong :-)0
-
Hi meeuw!
Here's some code....
I'm using ObjectDesigner project template from got C/AL...INSAppBase apb = (INSAppBase)getObj; INSTable t; apb.GetTable(2000000038, out t); INSRec r; t.proc6(out r); string s; r.GetFieldValue(4, out s);
getObj from --> RunningObjects
This code does not work, probably I got no clue about.
All I want to do, is to get all Objects (Tables, Forms, ..) and return some sort of colletion (dic, array ...else).
When I was checking out the "cside integration utils" there were an option to get all the Tables,
but when iterating through loop, it takes excessively long time.
Maybe caused by overhead?
appreciate your help!
thanks0
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