on 04-09-2009 9:27 AM
hi
I want to restrict the UI element "Input Field " Character length..
For Ex
I had taken Label "Name" ....i given input field.....But its allowing 'n' num of characters in that field.
I want to restrict those characters to 10.
Is it possible with property settings in web dynpro or we have to write code for that.
If thats the case,,Please provide the code.
Thanks in advance
Regards
Sushma
Hi susma,
you want to restrict the size of inputfiled as ao characher ..
go to --Dictinary block where you created Simple Type..
you have to create one simple type as inputlength.
after created you have number of tab at below..
select the DEFINITION TAB-chose-Maximum length --10..then save it
after that you have to set input attribute as data type as simple type which created for restrict the length
Go to Attribute value as input-go to property-choose TYPE property of INPUT Attribute---set Your simple Type as inputlength.
hope this will wark
thanks
jati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sushma,
For this you have to create a simple data type. No need of writing a code.
Go to Dictionaries -> Local Dictionary -> Data Type - > Simple Type - > Right click and "Create Simple Type".
Here you should create a Simple type with String as built-in Type. Here you will also see the Length Constraints option.
Set the value of maximum length and minimum length. In your case set the value of maximum length to 10. At runtime this will not allow the user to enter more than 10 characters.
Now create an attribute and bind it to this newly created simple type. Bind the value of the input field with this particular attribute.
I am sure this will solve your problem. Please revert back in case you need any further help!
Thanks and Regards
Pravesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.