on 01-24-2008 6:34 AM
Hi,
I want to put validation in input field and dropdown box by index.In Input Field it should be only contains Number,there will be no alphabets and special characters in it.
For dropdown box, it should not be empty selected, there should be atleast one selected item.
How can I do validation in it? please provide me the code
Regards
Manish
HI manish,
For input field, create a simple type of type integer in dictionaries->data types-> Simple types .Create a context attribute of ur custom simple type & bind it to the input field.
For dropdown , just change the selection property of the node to 1.n.
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You should have told this that the data is getting auto-populated.
One solution is that you can make the inputField as readOnly. If the type of the attribute is integer
then it will be validated automatically by the framework for non-numeric and empty values.
For dropdown you can always check with the attribute mapped to dropdown if it is null or not.
thanks & regards,
Manoj
HI Manish,
What do u exactly mean by "If i bind this attribute to value property then How can I retrieve data from BAPI " ???
Its value property of the input field, its not a value node or attribute. If u r using model nodes & attributes, just check there will a simple type automatically created, when u create the model from the bapi.
In case its not numaric, create a value node & attribute, follow the steps i have told earlier, copy the data from model node to value node .
regards
Sumit
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.