Showing posts with label virtual companies. Show all posts
Showing posts with label virtual companies. Show all posts

Tuesday, March 16, 2010

Global::curExt2dataareaId

While working with virtual companies it is needed sometimes to determine what is the actual DataAreaId that will be assigned to the table record if it will be inserted in the current company context. To do that there is the method curExt2dataareaid() on the Global class.
Example:
Let there are 2 companies A and B and the virtual company V that includes both A and B.
If table Unit is shared in the virtual company V and current company is A then
curExt2dataareaid(tablenum(Unit)) == 'V'.
If table Unit is not shared in the virtual company V and current company is A then
curExt2dataareaid(tablenum(Unit)) == 'A'.