cancel
Showing results for 
Search instead for 
Did you mean: 

Input field property state > required

Murali_Shanmu
Active Contributor
0 Kudos

Hi

Just curious to know what is the purpose of a State property for an InputField ? Normal Item & Required are the possible values.

Regards,

Murali.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Murali,

I would like to explain the need for the 'STATE' property of an input field in WDA with an real-time example,

You have requirement that you need to display a Sales Order Document based on the inputs that the user gives namely Sales Order No., Material, Material No. etc..,

Out of the few user inputs the Sales Order No. is the madatory one with which you an display the sales order document.

So when you are creating a screen with all those user input you can define which user input should be mandatory one. In our case it is the Sales Order Number whose state should be mandatory one.

If you make this input as a madatory one, then the WDA takes care of during the Run-time. i.e. You will not allowed to go the next page unless you fill the mandatory input field.

Hope it helps.

Regards,

Maheswaran.B

former_member215843
Active Participant
0 Kudos

Hi Maheswaran,

Please note that mandatory input is not checked by the WD framework (neither ABAP nor Java). Only the asterix is displayed to highlight the field as mandatory.

But there are service functions to check mandatory input.

For more info on this please refer to <a href="http://service.sap.com/~form/handler?_APP=01100107900000000342&_EVENT=DISPL_TXT&_NNUM=948753">OSS Note 948753</a>

Regina

Former Member
0 Kudos

Hi Regina,

Thanks for noting it.

I thought it will take care of it, since it takes care of validations like the below scenario...

If i Bind the input field to an integer and if i try to enter some charecters in the input field and if i navigate to the next page. It will automatically show the error message.

Thanks Again.

It helped me a lot.

Thanks & Regards,

Maheswaran.B

Murali_Shanmu
Active Contributor
0 Kudos

Hi Maheswaran,

WD has a Validation framework and will automatically validate if user gives in characters for an Input field which is of type Integer.

The 'State' property which I was referring to <b>does not</b> check if the field is mandatory. Hence I have raised this thread to get views from everybody as to why this property is there. Is it only to mark a field with asterisk ?

Regards,

Murali.

Murali_Shanmu
Active Contributor
0 Kudos

Thanks Regina Breuer. Ur note was useful.....

Regards,

Murali.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

required means that a value must be entered into the InputField by the user. There's also an asterisk to show this. Normal is just the normal state. See also <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/d9/beeb4172876430e10000000a1550b0/frameset.htm">AbstractInputField properties</a>

Regards, Heidi