on 09-01-2010 11:16 AM
Hello All,
Is there a native functionality to restrict the user input only to numbers in say inputfield UI elem? other than writing code to check what has been entered
Cheers
Senon
Play around with creating Simple Types and the external and internal representations. There should be some way of creating a Simple Type that meets your needs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Senon,
To provide the functionality desired by you, you can create a simple type of type integer and bind it to the input field type. If you are fetching data from an RFC, then the type of the input field can be the type of your Model Node attribute. You just need to bind the type to the attribute.
I hope it helps, if oyu are looking for something more, please revert.
Cheers!!!
Umang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check the Format inputfield when using simpletypes. More details here:
http://help.sap.com/saphelp_nwce72/helpdata/en/48/57551fc01071b9e10000000a421937/frameset.htm
Still what you'd like to achieve is not possible I guess, because a validation must take place in order to decide what you have entered in your browser on client side. A round trip is necessary to have the validation as per the WD Phase Model (http://help.sap.com/saphelp_nw70/helpdata/en/13/aeeb41eda96624e10000000a1550b0/frameset.htm).
Perhaps using some kind of scripting this is possible, but I am not sure we provide support for it in case any question raises.
Cheers,
Ervin
Hello Senom,
Simply bind the input field to the attribute of decimal type and it will provide you the inbuilt validation of WD framework
Thanks
Sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
1. Create a simple type of type decimal / integer whatever suits your needs.
2. Create a value attribute and declare it to be of type mentioned in 1.
3. Bind the value property of the Input field to value attribute declared in 2
Regards,
Himanshu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.