Skip to Content
Jul 30, 2007 at 09:26 AM

Problem with DATE field


Hi All

I have input field which is attached to a Date type variable.

The same form has some dependent drop down lists.

I have written the following code in WdDoInit method so that to make Date Format as dd/mm/yyyy.

IWDAttributeInfo dateinfo = wdContext.getNodeInfo().getAttribute("dateOfExecution");
ISimpleTypeModifiable simp1 = dateinfo.getModifiableSimpleType();

But when user manually enters the date (instead of using date navigator), in wrong format, the error message comes as

<b>"Enter the value in the format 25/11/1987"</b>

and program <b>looses the control</b> until either user makes correct entry or removes date; I mean when such message comes and if user neglects message and clicks on drop down list the other dependent list doesnt get updated.

I want to customize the message and dont want to loose program control .

Please suggest the solution.