cancel
Showing results for 
Search instead for 
Did you mean: 

WDA: View input field restriction to N character entry

Former Member
0 Kudos

Hi Experts,

There is a input field on the view bind to a attribute of length 80 char.

But I want user to restrict entry of only 70 character at appliction run time.

How we can achieve this.

Thanks

Depesh

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member40425
Contributor
0 Kudos

Hi,

After clearing the dictionary structure You directly can change type of attribute with char70. No need to create data element also.

former_member40425
Contributor
0 Kudos

Hi,

Create a data element of lentgh 70 in SE11 then attribute of that data element type and bind it with that input field.

I hope it helps.

Regards,

Rohit

Former Member
0 Kudos

Hi,

Existing binding is from DDIC of char 80. Can't we control using nay FM or other facility to restrict character entry.

former_member40425
Contributor
0 Kudos

Hi,

Go to node properties. Now clear the dictionary structure.

Then You can change the type of attribute which is under that node. make it of data element( length 70 ) type.

saket_abhyankar
Active Participant
0 Kudos

Hi

You can write code (method) in 'onenter' event of that field. You can follow the procedure in that method:

1) Get the value entered by user in that field

2) find the length of value entered

3) issue error msg if entered value is larger than 70

This will check the length of entered data on each enter event

Regards,

Saket.