0

Relations / Relaties

Hi,

 

I don't quite understand the difference between :

Basics: The 1:N Relation

and

Subtables: The Composition Relationship

and how they work.

I would think it would be the same, except in the Parent/Child when you delete the Parent, the Child records are automatically deleted.

 

Tx

 

Regards

 

Michel

------------------------------------------------------------------------------------

1 reply

null
    • Danjamesmedia
    • 2 yrs ago
    • Reported - view

    Hi Michel,

     

    You're right - Composition just allows for the cascading deletion of child records.

    Another feature is that in a composition relationship, the unlink record button is hidden to the parent record from the child record, to make it more difficult to unlink them, however you can still change them programatically.

     

    From within a form view, using the create a sub-table button is exactly the same as creating a table separately, and using the "link from" type from the parent, and then within the child table changing composition to true in the parent field reference settings.

     

    Hope this helps!

Content aside

  • 2 yrs agoLast active
  • 1Replies
  • 119Views