Skip to Content
author's profile photo Former Member
Former Member

Making User Input Data UPPERCASE

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 10:29 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 29, 2008 at 08:52 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.