on 01-08-2007 6:32 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.