on 06-10-2008 8:32 AM
hi
i have year range from and to with two
input fields ,
but how can i restrict string values to be entered in this
year range , i need only numeric values to be entered
hi kishore shikore ,
set the data type of your value attribute "range" to integer.
if your value attribute "range" is of type integer
then no need to validate it for string , when ever user will
enter string value in that field at run time it will give error
automatically. just try
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
set the data type of this attribute to integer.
OR
String val = wdContext.currentContextElement().getRange();
try{
Integer.parseInt(val);
}catch(NumberFormatException e)
{
//Not a valid number
}
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 |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.