cancel
Showing results for 
Search instead for 
Did you mean: 

Characters limitation dynamically

former_member199125
Active Contributor
0 Kudos

Hi Guys,

In webdynpro can we limit the number of characters in Text edit box, i mean i want to show instantly how many number of characters he entered.

Any ideas guys?

Check image for better understanding of question.

in image observe on right hand corner... .left characters 131 ( it means user can enter only 131 characters more ). like that is it possible in webdynpro?

Regards

Srinivas    

Accepted Solutions (0)

Answers (2)

Answers (2)

UweFetzer_se38
Active Contributor
0 Kudos

Hi Srinivas,

to react on key strokes you need Javascript. Unfortunately in WDA it's not possible to inject JS.
The only solution that comes to my mind is, to embedd an BSP Iframe with the text-input and the javascript source.

Best regards

Former Member
0 Kudos

I guess it should be possible through custom code and also that there is no event for Text editor. There is no standard functionality provided.

You need to explicitly create a button to calculate the count of words or check wether Modifyview gets triggered or not to write the code.

Take that string and try to find the count of words using any function module if any.

For Limitation test these examples -

WDR_TEST_TEXTEDIT

WDR_TEST_TEXT_EDIT

former_member199125
Active Contributor
0 Kudos

Lekha we can find number of characters using STRLEN( str ). but i want to do it automatically without any button action..

can it happen in webdynpro?

Regarsd

Srinivas

Former Member
0 Kudos

No, it is not possible.