#4067 - Ability to create sub-records (one-to-one case)

Identifier #4067
Issue type Feature request or suggestion
Title Ability to create sub-records (one-to-one case)
Status Open
Handling member Deleted
Addon catalogues
Description Make it so that you can set up catalogues A and B, such that A has a reference into B, and when you add a new entry to B you can create entries for catalogue A in-form via an XML syntax, and those entries would be set to reference the new entry for B when created.

Allow it to work on edit also, with XML representing existing entries.

It would be enabled by field options on the single-reference field in catalogue A.

For example, let's imagine catalogue A is song and catalogue B is artist. When you add an artist you could specify some XML like...

<new-records>
<song Title="Bad Romance" Rating="3" Explicit="false" />
<song Title="Just Dance" Rating="3" Explicit="false" />
</new-records>

Probably the field would show a commented example by default, so you could see the field names etc to use. And it'd have to have some kind of error-handling algorithm (maybe just tell you your mistakes and be tolerant).
Steps to reproduce

Additional information This is a power-user feature to make adding complex structures easier. Otherwise you're having to go off and add the song records in dependently, for each selecting the reference, which is tedious.
Related to

#2435 - Setting relationships backwards (many-to-one case)

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated