I have 2 objects ‘Reminder’ and ‘Reminder Type’ related by one Reminder Type to many Reminders. I have a pop up to create a Reminder record, that has a relation selector to select the Reminder Type. I’d like to use a Fragment Callback to get values from the selected Reminder Type record to populate values in the Reminder once the type has been selected. The code below should get the text field ‘detail’ from the Reminder Type and set it to the ‘detail’ field of the Reminder:
var values = fragment_presenter.get_values();
if (!values) return;
var selection_detail = mats.ref(‘hr_reminder_detail’);
var reminder_detail = values[selection_detail];
Is the problem that the relation doesn’t yet exist (it’s only been selected on the page) - if so how do you return values through the relation selector?