Hi,
I have Table1 (save per company = no) which means shared. it has the following three fields:
Id1, Name, legalEntity
1 Name1, USMF
2 Name2, USMF
3 Name2, ABC
** legal entity relation is with company info
** Id1 is the unique index
Another shared table (Table2), which has the following fields:
Id1, Id2 (both of them together are unique index)
**Id1 relation is with the first table
Last table (Table3) is not shared (save data per company = yes), and it has the following fields:
CustomerId, Id1, Id2 (the three of them together are unique)
**Id1 relation with table1
**Id1, Id2 relation with table2
Now Table3 is used in a form alone (no other datasources)
Now when I want to pick Id1 in the form, I should only see in the drop down/Id1s/ where the legal entity in Table1 matches the current user legal entity.
So if the current user legal entity is ABC. When adding record to table3, then he should only be able to see Id1= 3 in the drop down
and if the current user legal entity is USMF. When adding record to table3, then he should only be able to see Id1= 1 or Id1 =2
how to do that?