on 2008 May 19 9:57 AM
Hi, I want to be sure that my inputfield will allow to save only numbers from 00 to 12 and nothing else, only in exact form as I define it, else error. How can I do this? Regards.
Hi Feder,
Define a simple type of Integer and and give the Minimum Inclusive as "00" and Maximum Inclusive as "12" and bind it to the context attribute you have created. Finally bind the bind the input field to the context attribute created.
This resolves your problem.
Thanks n Regards,
Jhansi Miryala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Define a simple type of Integer and and give the Minimum Inclusive as "00" and Maximum Inclusive as "12" and bind it to the context attribute you have created. Finally bind the bind the input field to the context attribute created.
that works fine but there is problem I would like to fix
- if someone wants to choose 0 it has to be "00", for now if you write in 00 it changes itself to 0. It affects of course "01" and it shows me "1" and so on
edit: external lenght and format solves this issue.
Thanks
Hi,
Create a calculated attribute of type string and in the setter of this method do the validation what you need.
Other option is used to use a drop down by list/index with the values prefilled.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
12 | |
7 | |
7 | |
7 | |
6 | |
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.