Once again, the legacy DB I'm working with throws me a curve. There are tables with "date" fields which are actually stored as integers in the format yyyymmdd. I need to use these in the SmartClient UI as normal dates. It sounds like a problem SimpleType was intended to solve but I can't figure out how to use it.
I started to experiment by putting the SimpleType element at the top of my DataSource ds.xml file as in the demo, but that gets me a null pointer exception when trying to use the DataSource.
<SimpleType name="zipCodeUS" inheritsFrom="text">
<validators>
<validator type="regexp"
expression="^\d{5}(-\d{4})?$"/>
</validators>
</SimpleType>
Is a SimpleType the right approach? If so, can you give me an example?
I started to experiment by putting the SimpleType element at the top of my DataSource ds.xml file as in the demo, but that gets me a null pointer exception when trying to use the DataSource.
<SimpleType name="zipCodeUS" inheritsFrom="text">
<validators>
<validator type="regexp"
expression="^\d{5}(-\d{4})?$"/>
</validators>
</SimpleType>
Is a SimpleType the right approach? If so, can you give me an example?
Comment