Hi I am new in Navision and I would like to implement the master-detail relational model without having composite keys. To be more specific
In a relational DB a master detail relation example:
Table[Person]
Person_ID (PK)
Person_name
Person_surname
Table[Lockers]
Locker_ID (PK)
Locker_Name
Person_ID
I want to make a form that displays Person and has a subform that displays the Lockers of that person. So far I have found two ways:
1. make a subform with subformlink (Person_ID=FIELD(Person_ID)) but then I have to create a compound key (Locker_ID, Person_ID). This is something I do not want (because I will have to create two fields in every other table that links to Lockers).
2. I can notify the subform (by calling one of its methods) when a new Record is created OR when record navigation happens but I have to write too much trigger code which is a pain.
Do you have a work around?
Thanks
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I belive this is partly because I suck at navision.
Could you please send me a fob that does the Person, Locker example?
Super thanks
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Notice the property DellayedInsert and PopulateAllFields on the subform.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
The strange thing was that while your solution worked, my form did not. Even though I had the exact same properties as the ones you told me to use on the previous posts. Then another developer hint me to delete my form and create it again....and it worked!
thank you for your help again