Hi,
I would like to know how should a table relation between table saved per company and table not saved per company be defined correctly in AX 2012. Please find below 2 cases I made.
Case 1. Use dataAreaId in table relation
1.4 Create a new record in table browser, open HierarchyId field lookup –> no record, however a record exists in Hierarchy table (for example in CEU company):
1.5 Create a record in Hierarchy table in DAT company, repeat step 1.4 -> the record is presented in lookup.
So for some reason the relation between TestSystemTable and Hierarchy tables is built based on DAT dataAreaId, but not the current company or dataAreaId field specified in the table relation. Why?
Case2. Do not use dataAreaId in table relation
2.1 Duplicate TestSystemTable and name it TestSystemTable2
2.2 Remove dataAreaId from Hierarchy table relation:
2.3 Lookup works correctly:
However from the logical point of view the relation is wrong as dataAreaId is not used.
*This post is locked for comments