SmartGWTee 2.3
I have a dynamicform displaying a datetime from a sql db using SmartGWT Server Framework. If canEdit="true" or not set as it is default. Then the date is formatted according to displayFormat
<field name="dtEntry" type="datetime" displayFormat="toEuropeanShortDateTime" canEdit="false"></field>
As soon as I set canEdit="false", I correctly get a read only field but the format is in default US format and not European Format aka dd-MM-yyyy hh:mm.
I am assuming this is because the FieldItem type is different when canEdit="false" but I cant find any documentation on how to format a read only datetime like this. The workaround I am leaning toward is to format the datetime myself in a <selectclause> .
Can anyone point me in the right direction?
I have a dynamicform displaying a datetime from a sql db using SmartGWT Server Framework. If canEdit="true" or not set as it is default. Then the date is formatted according to displayFormat
<field name="dtEntry" type="datetime" displayFormat="toEuropeanShortDateTime" canEdit="false"></field>
As soon as I set canEdit="false", I correctly get a read only field but the format is in default US format and not European Format aka dd-MM-yyyy hh:mm.
I am assuming this is because the FieldItem type is different when canEdit="false" but I cant find any documentation on how to format a read only datetime like this. The workaround I am leaning toward is to format the datetime myself in a <selectclause> .
Can anyone point me in the right direction?
Comment