[Axapta-Knowledge-Village] Tableid to TableBaffer

2007-03-20 Thread Syed Saeed Ahamed
Hi, You can use the System Class DictTable to get an Handle for the table to which u want a TableBuffer as write the following code DictTable Dt; DictField Df; ; Dt = new DictTable(TableNum(custtable)); Df = new Dictfield(dt.id,dt.fieldcnt2id(1)); //with df we get he handle to the first field

Re: [Axapta-Knowledge-Village] Tableid to TableBaffer

2007-03-20 Thread Kamal Kannan
Hi Try using the Dictable.makerecord() method, it returns a type common. should be someting like this. SalesTable salesTable = new SysDictTable(tablenum(salesTable)).makerecord(); Regards Kamalakannan http://casperkamal.spaces.live.com (Technical blog on Ax) On 3/19/07, dj3mb3 <[EMAIL PROTE

[Axapta-Knowledge-Village] Tableid to TableBaffer

2007-03-19 Thread dj3mb3
Hi, How can I create a dynamic table buffer from the table id? I mean something like the makeobject() function of the dictclass because I need to use that buffer in an sql statement. thanks dj3mb3