I have a DynamicForm.
I have bound a DS.
I have set setUseAllDataSourceFields(true).
For a few fields, I have created custom FormItems to override the defaults, and have called setItems() to pass them.
After this, if a call getFields(), I get an array of fields, both the ones I passes, and the ones auto-generated from the DS.
This is all well, but then calling getField(id) with the ID of a non-overridden field, I get a null, even if the field is definitely there, even returned by getFields(). It is there, but getField(id) seems to be unable to look it up.
I can get around this by using getFields() instead of getField(id), but this feels like an error...
I have bound a DS.
I have set setUseAllDataSourceFields(true).
For a few fields, I have created custom FormItems to override the defaults, and have called setItems() to pass them.
After this, if a call getFields(), I get an array of fields, both the ones I passes, and the ones auto-generated from the DS.
This is all well, but then calling getField(id) with the ID of a non-overridden field, I get a null, even if the field is definitely there, even returned by getFields(). It is there, but getField(id) seems to be unable to look it up.
I can get around this by using getFields() instead of getField(id), but this feels like an error...
Comment