Hello,

i want to use datefields with several input (formats) e.g.:
ddMMyyy
dd.MM.yy
ddMMyyy
dd.MM.yyy

At FocusLost the datefield should be formatted with dd.MM.yyyy 
or by an incorrect input should appear an Error Message.
At FocusEnter the datefield should be formatted with dd.MM.yyyy (valid input)
or the incorrect value appear.

In the first step i use DateDataType to format and validate 
ULCTextFields with format pattern dd.MM.yyyy. 
It works fine until i enter a valid Date with this format. 
I get field Value Null when we enter an incorrect Date 
but not a Message about it. I try to check the FieldValue by 
FocusLost ourselves but we get NULL at an incorrect Date.

In the second step i use convertToObject (UIDateDataType) to get the
entered value for validation and formatting. The convertToObject Method
fires on each Keystroke. 
Here i can format the entered Value with dd.MM.yyyy but itŽs much complex.
When the field gots the focus the value isnŽt formatted and appears so inputted.

I search for a method to format and validate 
an datefield on the FocusLost Event with the possibility to set the value.
I have seen your Examples in the ULC Developers List at these subject but canŽt 
got the right idea.

Thanks

 

 


        
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
*http://smartsurfer.web.de/?mc=100071&distributionid=000000000066* 
[http://smartsurfer.web.de/?mc=100071&distributionid=000000000066]

Reply via email to