cancel
Showing results for 
Search instead for 
Did you mean: 

Making User Input Data UPPERCASE

Former Member
0 Kudos

I am using htmlb and want to know how to make an input field show/receive UPPERCASE data (as user types in the data).

Thanks, in advance, for your help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Just in case you want to store it as UPPERCASE in the database, then use the

'TRANSLATE letters TO UPPER CASE' command of ABAP.

Cheers,

Tatvagna.

Edited by: Tatvagna Shah on Jan 30, 2008 4:00 PM

Answers (1)

Answers (1)

GrahamRobbo
Active Contributor
0 Kudos

Hi Bob,

lots of ways to do this using client-side scripting. Here is a simple example you can draw from. http://javascript.programmershelp.co.uk/conformupperjs.php

Cheers

Graham Robbo

Former Member
0 Kudos

Thanks for your suggestion:

I know how to make the text capital after its entered. But, I need to be able to make the text capital as its being typed by the user.

Is this doable with an htmlb property? if so, what property. I can't seem to find a solution.

athavanraja
Active Contributor
0 Kudos

you do not have any property in htmlb:inputField for this.

i just implemented what Graham Robbo has suggested in the following example code. check it out .



      <htmlb:inputField  id = "IP1"
                         width = "100"/>
                         

      <s cript for="IP1" event=onkeyup type="text/ja vascript">
                  thas.value=thas.value.toUpperCase();
      </s cript>
  

in the above code change the thas ( 2 occurrence) to this

PS: do reward points to Graham Robbo