NAV COM Interface: EnumTables/GetTable?

_Midnight__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!

Comments

  • meeuwmeeuw Member Posts: 9
    Hi _Midnight_, if you could post a sample of your code then I can tell you what you might be doing wrong :-)
  • _Midnight__Midnight_ Member Posts: 15
    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!
    thanks
Sign In or Register to comment.