cancel
Showing results for 
Search instead for 
Did you mean: 

Case input characters to upper case on the fly

Former Member
0 Kudos

Is it possible to cast lower case input characters on the fly in webdynpro java application.

Any ideas?

Accepted Solutions (1)

Accepted Solutions (1)

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Wing,

Explicitly you can do case-conversion in Web-Dynpro.

by converting string to UPPERCASE/LOWERCASE like this.

String firstName= wdContext().currentContextElement().getFirstName();

firstName = firstName.toUpperCase();

firstName = firstName.toLowerCase();

I hope you are looking for this if not could you please elaborately your need.

Regards, Suresh KB

Answers (1)

Answers (1)

sid_sunny
Contributor
0 Kudos

Hi Wing,

Can you please specify what do you mean by on the fly.

Regards

sid

Former Member
0 Kudos

> Hi Wing,

>

> Can you please specify what do you mean by on the

> fly.

>

> Regards

> sid

Sid, I mean when I type in a character ( no matter upper case or lower case ), it will display a upper case character on screen before I hit return or move to another field. Just like CAPSLOCK on.

Wing

Message was edited by:

Wing Law

Abhinav_Sharma
Contributor
0 Kudos

Hi Wing,

As far as I know it is not possible to the case of cahracter 'on-the-fly' in webdynpro. It requires client side eventing which is not possible in webdynpro. This specific problem requires the event that should be triggerd by hitting key-strokes. and it is possible in java (using javascript) but i don't think it is possible in webdynpro as Javascript is not supported by it.

Regards

Abhinav Sharma

Former Member
0 Kudos

Hi Wing,

This is not possible. However as an alternative you can write the code to make the context variable to uppercase using toUpperCase() method of string in the onAction() of that inputfield or in wdDoModify().

sid_sunny
Contributor
0 Kudos

Hi Wing,

If you want that even if the user is typing in lower case but s/he should see the characters being getting typed in upper case only then I think this is not possible.

Regards

sid