One To Many realationship editor

One To Many realationship editor

sandip_krtyasandip_krtya Posts: 2Questions: 1Answers: 0

HI,
I want to know how one to many editor like parent child in one form and save only one click

Answers

  • rf1234rf1234 Posts: 2,950Questions: 87Answers: 416

    That question is too general. For most parent child relationships the number of child records is unlimited and of course the child records will have multiple fields. That may not fit into the form ergonomically.

    But in many cases it works:
    In this example: https://editor.datatables.net/examples/advanced/joinArray.html
    "permission" is the child table and "users" is the parent table. As you can see you can edit the child table in one form and you can save it with only one click. Strictly speaking you are not editing the child table because you can't add more permissions to the permissions table. You can only assign existing permissions to the user.

    But you could write the code in a way that you add permissions on the fly and then assign them to the user. That is possible using "Selectize" for example.

  • sandip_krtyasandip_krtya Posts: 2Questions: 1Answers: 0

    Thank you rf,
    I already seen this example (https://editor.datatables.net/examples/advanced/joinArray.html), but i want to know about like below image. is it possible?

This discussion has been closed.