Add new child item without possibility to edit others in "One to many relationships"

Hi,

I have fabrik on GitHub 2 days ago.

I have a problem with issue described in tutorial:
Category: 02 - Digging Deeper - 08 - "One to Many Relationships".

I have a table and form that allow me to enter one parent item - "Documents" and multiple child items - "Sub-Documents".
Each "Document" can have multiple "Sub-Documents".

What i need it is in table view to have 2 options for "+circle" - "add new":

1. Add1 --> that what is = add new parent item with multiple child items.
2. Add2 --> add only new child item to existed parent item ( without possibility to edit parent item - but it is not problem to set it). That "Add2" is neccessary because i need not to allow "edit" existed parent and child items.

I know i can use something other instead of "Add2" but it is a problem to "add new" Subdocuments from table for only "Subdocuments" because when decide to add new child - Subdocuments user need read carefully all fields for parent item to decide to whom parent add a new child.

Problem with not allow "editing" existed parent and child items is because they are "Quality documents" once saved and must not be changed.

I would be very pleased if i get any solution for it.
 
So you have a table/list "Documents" joined to "Subdocuments" (and the documents-[subdocuments] group set to repeat)?
Subdocuments containing a dbjoin element to Documents?

You could
set add/edit access for the Documents to admins only
in Documents list settings enable related data link to form Subdocuments

So normal (or registered) users won't see the Add1 (on top of the list), but only the Add2 in every Document row,
the parent id would be inserted automatically in the Subdocument form

I hope I get what you want to achieve.
 
You could
set add/edit access for the Documents to admins only
in Documents list settings enable related data link to form Subdocuments

... but only the Add2 in every Document row,
the parent id would be inserted automatically in the Subdocument form

What I want to achieve is Add2 - and it works very fine!

Many thannnnnnnks.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top