Hi all,
I have a DynamicForm with a SelectItem that has a foreign key (OptionDataSource is set on the SelectItem). Elsewhere in the code, I am manipulating the Record of the DynamicForm, but I don't have direct access to the "DisplayField" value that was displayed in the form.
Is there a way to get a record from the foreign-key DataSource without going back to the foreign-key Record from the SelectItem? I'd love something like:
Or maybe something using a RecordList as an intermediary.
Thanks very much.
I have a DynamicForm with a SelectItem that has a foreign key (OptionDataSource is set on the SelectItem). Elsewhere in the code, I am manipulating the Record of the DynamicForm, but I don't have direct access to the "DisplayField" value that was displayed in the form.
Is there a way to get a record from the foreign-key DataSource without going back to the foreign-key Record from the SelectItem? I'd love something like:
Code:
// pseudo-code (these methods don't likely exist) Record primaryRec = dynamicForm.getValuesAsRecord(); // form references fkID in SelectItem Record foreignKeyRec = foreignKeyDataSource.getRecord("fkID"); String name = foreignKeyRec.getAttribute("fkName");
Thanks very much.
Comment