I have a collection called “trial” that has a relation with another collection “disease area”. When creating a new trial, I need to add at least one disease area (trial hasMany disease areas). When I developed the feature a month ago, I was able to have:
a view for “details” where I could fill all properties of my entity
a view for “related data” where I could select the collection “disease area” and add/select entities
This is the most important feature of our product as it stops business if we can’t create entities, please help me ASAP !
Observed behavior
The “Related data” view is not accessible anymore on the “trial” entity creation, making it impossible for me to create a new entity as having “disease areas” is mandatory. The button “Related data” just disappeared from the interface.
I checked the layout and couldn’t find anything. I checked my code and I haven’t done any modification on my configuration.
From what I understand, the related data (disease areas in your case) are not automatically linked to the record (trial in your case) unless you specify in the form of each disease area the id of the trial you are about to create. This felt like a poorly functional feature on our side and since you are automatically redirected to the trial’s details page after creation, where you are only 1 click away from adding disease areas which are automatically linked to your trial, it appeared like the easiest way to remedy this was simply to remove the “Related data” tab. I’m sorry it got in the way of your creation flow!
Would you mind telling me, in your last screenshot:
do you usually use “Add an existing disease area” or “Create a new disease area” or both
is there any “trial id” field that you must fill in order to link the disease area to the trial? If so, what id do you enter?
This would help me better understand how this feature is used.
When creating a “trial”, we cannot have the an empty array for the “disease areas”, that is why we need to have the relation on creation. Else, we would just create the trial and then add the disease areas separately.
Here we are using “related data” but what would be optimistic is to have a field “disease areas” within the “details” form that allows multi-select on other collections. This way, we would just do the same as we do for other fields.
Example: a trial has one “sponsor” which can be selected directly in the form (cf. picture below)