cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert the normal date field as mandatory date field

Former Member
0 Kudos

Hi Gurus,

I got a requirement where in which webdynpro application has a date field which is not mandatory now?

Now my requirement is to make it mandatory? how to do that?

If code required can you pls provide the same too

Thanks in Advance,

Dharani

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Set the state property of the inputField mandatory

Regards

Ayyapparaj

Former Member
0 Kudos

Hi dharani,

1.attribute name is Date

2. create one action.

3.assign the action to the button properties---->Onaction

4. do the following steps in the onAction event

String source = wdContext.currentContextElement().getDate();

if (source != null) {

// do your coding

}

else

{

wdComponentAPI.getMessageManager().reportSuccess(

"THIS IS A MANDATORY FIELD");

}

THATS IT,

Regards,

P.Maniavannan