on 09-21-2005 1:30 PM
Hi All,
If i want to perform validation for InputField. (eg , only numeric values, specific pattern (xxx-yyyy))
Could anyone let me know do we have any built in features under webdynpros to do that., OR we need to do on the event of onenter.
Thanks,
Raghavendra
Hi,
The best to do this to create a simple type and give it all the restrictions.
Create a attribute of this type in context and map the same to the input field.
Regards,
Vijith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghavendra,
The alternative webdynpro offers is to create simpletypes of that particular built-in type in your local dictionary& specify your restrictions there. For eg: create a simpletype of built-in type Integer and specify the maximum & minimum values accepted. Then create attribute of that particular simple type and bind it to the input field. This performs the validation check automatically.
But this approach offers limited validations. so if you nedd extensive validation, it is better to have your own validations methods defined.
Best regards,
Nibu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.