Hi,

You were on the right track...

    dictTable   = new DictTable(tableId);
    common      = dictTable.makeRecord();

    ttsbegin;
    select firstonly forupdate common;
    common.(fieldId2Ext(<<fieldID>>,arraycounter)) = "XXXXX";
    common.update();
    ttscommit;

Gert Neetesonne
Technical Product Manager
Edan Business Software





>From: "dgaethofs" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: [development-axapta] Instantiate a Table Object
>Date: Wed, 07 Apr 2004 09:42:30 -0000
>
>Dear all,
>
>I am looking for a way to dynamically instantiate a table object in
>a Job.
>
>Normally when you want to use the data contained in a table you have
>to define a new instance of table.
>Example: CustTable cust;
>
>I have a job that checks the data dictionary - more specific the
>DictTable - for fields with a certain name.
>The moment a field is found I want to lookup the values of that
>field in its table.
>The table name is given by the DictTable.name. It is the name of the
>table to which the field that is found belongs.
>
>How can I instantiate a table object for this table ?
>Or is there another way to accomplish what I described?
>
>If you look at Classes there is a method makeObject to instantiate a
>new instance of the class. I have been using this and it works for
>classes. Such a method however is not available - or I could not
>find it - for tables.
>
>Does somebody knows how to do this?
>
>Kind regards,
>Danny Gaethofs
>
>

_________________________________________________________________
Lekkere pastagerechten !! http://www.msn.be/culinair/pasta


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to