cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with DATE field

S0019300750
Contributor
0 Kudos

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();
simp1.setFormat("dd/MM/yyyy");

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

when the error message is coming, on click of a certain button or what?

S0019300750
Contributor
0 Kudos

Yes Anirban

The error is coming after I click one of the buttons available on the same form.

Former Member
0 Kudos

When you create an action, it is per default marked as "validating" which means that validation is performed before the action is executed. If you don't like this behaviour, uncheck the "validation" flag in the action editor.

Armin

S0019300750
Contributor
0 Kudos

Hi Armin

Thanks for reply. It helped me.

But my other question is, how to change the message <b> Enter the value in the format 25/11/1987</b> ?