WebHare community

SelectField: Column 'ORIENTATION' does not exist

When extending SelectField, the return the following error:

Screenshot 2020-06-22 at 15.52.26
Screenshot 2020-06-22 at 16.05.38

Any thoughts on how this can be fixed?

field contains the properties set from XML (based on the component’s xsd). If you extend from selectfield, you need to either add all its attributes to the XML or manually set them in field.

Unless you really need to override the low level details of select, it’s often easier to extend from SelectFormFieldBase. You can find some examples in the testsuite

Thank you.
I was indeed able to fix it by adding the attribute to the field. I’ll keep the SelectFormFieldBase in mind.