I am trying to create custom FieldTypes to be configured in a DataSource XML, so that some customization for our environment can be created. I can't find a good example for subclassing SimpleType (only zipcode with added validator).
We want 2 behaviours:
1. When using a boolean field, we like the checkbox in forms, but it saves it as a text with "true" or "false", and we need 1 or 0 in a number field.
2. We need to display short Hex data which is saved in the DB as RAW type (not text). So the user will input and look at hex strings, and we will save this in the datasource as byte[].
Is that possible by subclassing SimpleType, or do we need to modify ListGrid?
Thanks!
We want 2 behaviours:
1. When using a boolean field, we like the checkbox in forms, but it saves it as a text with "true" or "false", and we need 1 or 0 in a number field.
2. We need to display short Hex data which is saved in the DB as RAW type (not text). So the user will input and look at hex strings, and we will save this in the datasource as byte[].
Is that possible by subclassing SimpleType, or do we need to modify ListGrid?
Thanks!
Comment