Friday, September 7, 2007

Cloning Table Buffers in Dynamics AX

I was wondering how would i clone a table method in my code as there is no clone method on Table buffer. There is also no property on a table which set it CLONEABLE.

There I find another way of doing this. i.e. I can copy all the contents of one Table buffer to other using data method of Table buffers.

This is like:

Table1 table11;
Table1 table22;

table11.data(table22.data());

This would copy all the conents of table22 to table11. Otherwise setting it like this:
table11 = table22;
would set both the reference to same object which may not be required.

Shujaat.

No comments: