Question Status

Suggested Answer
Eitan Mizrahi asked a question on 30 Jan 2013 3:24 AM

On Dynamics AX 2009, there are situations which a table is declared as virtual table.

This is done by the menu : Administration -> Setup -> Virtual companies account.

On table collection, I declare a table collection which the table is within it.

 

I want to identify by X++ code, whether the table is in the collection.

 

Thanks :)

Reply
Suggested Answer
Joris de Gruyter responded on 30 Jan 2013 7:00 AM

Every table has a DataAreaId field, which indicates the virtual company ID. You wouldn't even have to retrieve a record, just declare the table and check its dataareaid at runtime.

Reply
Suggested Answer
Joris de Gruyter responded on 30 Jan 2013 7:00 AM

Every table has a DataAreaId field, which indicates the virtual company ID. You wouldn't even have to retrieve a record, just declare the table and check its dataareaid at runtime.

Reply