cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple format representation for time input field

Former Member
0 Kudos

Hello All,

Does anyone know if its possible to create a time input field that accepts 2 possible format eg : 0900 or 09:00 ?

I am able to do so for either format in the local dictinary but I am wondering if its possible to make the field accept both formats ? Thank you very much.

from

Kwok Wei

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

1. Create calculated attribute (read-write) in the same context node (or in 1..1 non-singleton sub-node)

2. In getter just return time field

3. In setter convert text eneterd from either format and assign it to time field.

VS

Former Member
0 Kudos

Hello VS,

I assume this means that the representation field in the dictionary will not be valid for use then ?

from

KW

Former Member
0 Kudos

Yes and no.

In fact you will hard-code format via parsing in setter method. However, represenation will be preserved via getter (if you follow exactly my advise). So user may type in several formats, but sees result only as it will defined by representation. Sure, you must support representation fromat in setter (and additionally several others)

VS

Former Member
0 Kudos

Thnaks for the advise and suggestion VS

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Two formats are not possible.

Regards, Anilkumar