performReadonlyTransformation()
for SearchableDropdownField
and SearchableMultiDropdownField
doesn't respect lazy loading
#11293
Labels
A follow-up to #11272
If you call
performReadonlyTransformation()
on aSearchableDropdownField
orSearchableMultiDropdownField
, it will convert the sourceDataList
into an array, which requires pulling data for all records in the list from the database.All that's really needed is data for the record(s) which are currently selected for the field, since it's read-only it doesn't matter what other options could have been selected, because they weren't selected.
We may need to create a new readonly formfield for these - at the very least we'll need to implement some specific logic in the
performReadonlyTransformation()
method to instantiate the readonly field correctly without pulling unnecessary data.Acceptance criteria
performReadonlyTransformation()
only loads data from the DB that is required to display the currently selected record(s) in the readonly form.OR
performReadonlyTransformation()
doesn't load any data from the DB - when the read only form is rendered, only data that is required to display the currently selected record(s) is loaded.PRs
The text was updated successfully, but these errors were encountered: