Validation: First letter of what user type must be capital

Hi Guys, i have a field in my form its datatype is char and user have to enter Employee's first name in this field.
Now i want that when the record is save, in the pre-insert or update trigger i want to change the case of this field in such a way that the First letter is capital and all others are small.
For example is user enters
james should be converted into James
or if he enters JAMES if is converted into James
How to validate this? Pliz help me.
Regards,
Imran

Hi,
Lets assume your field name is first_name where you want to implement this functionality. Now on When-Validate-Item trigger of this field put following line:
select initcap(:first_name) into :first_name from dual;
Put this line everywhere you want this functionality. Hope that this will help you.
Regards
Yogesh

Similar Messages

  • Keyboard dropping first letter

    My apples is starting to drop the first letter of everything I type no matter what I am in. If I go back then restart my typing it is ok. but the first letter is always missing when I begin. What is going on? Heard about this on an outside forum, does anyone have an idea of where to begin. I have the 27" Mac on the Safari.Thanks for the help.

    welcome to macbook forum,
    I never had that problem, maybe the first stroke count as a wake up call to the application.
    Try to move mouse or touch the pad before start typing.
    Good Luck

  • First letter in capital

    I would like to know... one very annoying thing with the E71 is that in autocorrect spelling mode, it insists on making the first letter of every word (or sentence) in capital letters, where I only seldom want it. Can this be switched off without switching autocorrect off entirely?
    Thanks

    I really love predictive text and the more you use it the better it gets, as the phone learns how you write, I can enter all my logins and email addresses using predictive because my phone has learned what I want to type, I even use it with my physical qwerty keyboard as it speeds things up incredibly . Just persist with it and it will get better and better !
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Word in proper case ( First letter Capiral and remaining small case )

    Hi all
    I wanted to make a sentence as a proper case one. like All first letter of the word should be in capital and remaining in small Letter..
    For example..
    I have a sentence in Lower case ..
    'rupees twi thousand only'.
    i wanted to make it as follows..
    Rupees Two Thousand Only...
    Cheers
    Christina

    Here is an alternative approach which uses a regular expression and runs over 10 times faster than calling STRING_UPPER_LOWER_CASE:
    form proper_case changing p_name.
      data:
        li_ofs type i.
      translate p_name to lower case.
      while sy-subrc = 0.
        translate p_name+li_ofs(1) to upper case.
        find regex '\b[a-z]' in p_name match offset li_ofs.
      endwhile.
    endform.  

  • How do i prevent the system from keeping what u type - username, sites, etc. on search box, i just type the first letter and it comes up immediately; even my username!

    When I go to a search box, i type in the first letter and the whole word comes up.
    I type in the first letter of the username and the whole word comes up.
    I just type anything and the next time i log, it remembers the whole word.
    Please take this out of my system. I do not want it to work this way. I want all memory to be gone.

    I'm starting to come to this conclusion myself, actually... though, how mom managed to do this on accident without mucking about in terminals or anything more than just a cursory knowledge of the OS X system configurations (behind the scenes), I don't know : |
    ... on the other hand, her and I tend to be the exceptions to a lot of rules : |
    I downloaded and installed TinkerTool, even though it supposedly doesn't work past 10.5.8, in the hoopes that, what it displayed (regardless of what it could change) would be correct as far as my "System" and "System (Headlines)" font settings were (see attached screenshot of the font section of TinkerTool for my system--not mom's).
    I've instructed her to install and run the utility (but not to change anything) and then send me a screenshot of the "Fonts" section so I can compare it to my own. If there's something different on her system, since TinkerTool should work on hers, we may be able to fix it that way... though it would, frustratingly enough, remain a mystery to all concerned as to how she managed to stumble upon this in the first place : |
    Anyway, I'm still hard at work on it... hopefully others are too and will share what they discover (if anything).

  • Right or Wrong? help: user account short name has Capital First Letter

    Hello
    I have the same issue as a post in the Mountain Lion discussion group.  It doesn't seem to be getting an answer.  So I thought I would post it here, being that I do have Snow Leopard.
    The Mountain Lion post is here: https://discussions.apple.com/message/21665861#21665861
    Here is MY question::
    Can anyone answer this?  I have this same thing.  I've had this Mac since 2010, too, I think, at least two years.  I don't remember being asked to use lowercase, nor actually typing in the Capital letter.  I stumbled upon the realization when I was using my Macbook and my user name whille different does use all lowercase.  The Macbook is newer.
    I've been running this Mac with the first letter Capital for the short name with no problems that I know of.  I do have Time Machine backups that I don't really want to lose access to.
    What are the benefits and pitfalls of using the method etresoft explains to change it to all lowercase??  Should I do it just to do it and be in line with Apple's guidelines or should I leave well enough alone??  Which way will cause me MORE problems?  Running with the Capital letter or going through the process of changing it to lowercase??
    What kind of problems will I run into if I change it or don't change it???
    Where "oldshortname" is your old user name and "newshortname" is the user name you want to change it to. Keep in mind that both oldshortname and newshortname must be all lowercase, with no spaces, and only contain letters or numbers.
    And, Padgreen has an excellent point -- how do we do this change process if our Old Shortname is Shortname??  How can we type "shortname" for the "oldshortname" if our shortname is not all lowercase??
    etresoft -- are you around??
    Or someone else?  Thanks!!
    (the only thing I can even think of as a problem is when I copy files/folders over to my Macbook - it sometimes makes "nobody" the owner of the file/folder and I find out when I try to edit or move the file. I can usually just change the owner and everything is fine.  I don't know if this is related or not.)

    http://support.apple.com/kb/ht1428 states:
    Select the Home folder with the short name you want to change, and rename it just like you would rename any folder. Keep in mind that the shortname must be all lowercase, with no spaces, and only contain letters.

  • "The CREATE USER statement must be the only statement in the batch" in SQL Azure - why? what to do?

    I'm getting an error on a line in the middle of a larger sql script, only in SQL Azure.
    IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = N'foouser')
    CREATE USER [foouser] FOR LOGIN [foouser] WITH DEFAULT_SCHEMA=[dbo]
    GO
    Error: "The CREATE USER statement must be the only statement in the batch."
    I don't actually understand what 'the only statement in the batch' means.
    What is a batch? Is it a SQL file? Is it related to a 'GO' statement or an 'IF' statement? What is the reason for the error? And how do I avoid it?
    Thanks,
    Tim

    >IF...ELSE imposes conditions on the execution of a Transact-SQL statement
    I understand the general purpose of an If statement. I could let go of our definition of statement counting disagreeing too except that because of the error I'm stuck.
    It's less important for Create User but what I am really puzzled over now is a very similar issue how am I supposed to do a safe version of CREATE LOGIN, when I don't know whether a login has been previously created on the server or whether I
    am setting up the database on a clean server?
    IF NOT EXISTS (SELECT * FROM sys.server_principals WHERE name = N'foouser')
    CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
    GO
    If I try and execute this script, it throws the same error as above.
    The first unworkable workaround idea is to omit the if statement
    CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
    GO
    But if the login already exists on the server (because a similar script was already run), then the script throws an error.
    The second unworkable workaround idea is to do
    DROP LOGIN [foouser]
    GO
    CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
    GO
    Obviously this throws an error in the second block if the login doesn't already exist on the server.
    The third workaround idea I have is to go conditional by putting an IF condition around DROP instead of CREATE:
    Unfortunately that doesn't work for me either!
    "The DROP LOGIN statement must be the only statement in the batch"
    (This is despite the fact that 'drop login' is listed on the
    supported commands page, not the partially supported page..?! Which disagrees with the notes on
    this page.)
    Anyway the real question I am interesting in addressing is: is there actually a way to have a 'Create/Delete login
    if exists' operation which is SQL-Azure compatible and doesn't throw me error messages (which messes with the sql execution tool I am using)?
    If there is no way, I would like to believe it's because it would be a bad idea to do this. But in that case why is it a bad idea?
    Tim

  • How to make sure user type valid value? If valid -- Proceed

    Me develop a java console program.
    BufferedReader request = new BufferedReader(new InputStreamReader(System.in));
    String strpollutantNumber;
    int pollutantNumber;
    System.out.print("Enter pollutant number >> ");
    strpollutantNumber = request.readLine();
    pollutantNumber = Integer.parseInt(strpollutantNumber);
    I want to control my pollutant number and make it always valid. Let's say, pollutant number is between 1 to 4 only. If user press 5, system ask to re-enter valid value as follow
    Your pollutant number is invalid. Please re-enter.
    Enter pollutant number >>
    Did i need using loop at
    System.out.print("Enter pollutant number >> ");
    strpollutantNumber = request.readLine();
    pollutantNumber = Integer.parseInt(strpollutantNumber);
    or something..
    need help.

    so far, i want to control user input using
    while ( ......)
    user must enter value >=0.31 and <=0.39. if user enter value=0.29, it means this value is out from >=0.31 and <=0.39. see below program
    while(gramEmitted>=0.31 && gramEmitted<=0.39) {
    System.out.print("Your grams emitted value is not valid ... Please re-enter \n");
    System.out.print("Enter number of grams emitted per mile >> ");
    strgramEmitted = request.readLine();
    gramEmitted = Double.parseDouble(strgramEmitted);
    i want user will prompt >> Your grams emitted value is not valid .. Please re-enter \n
    Enter number of grams emitted per mile >>
    what i've now is when user enter value=0.29, the program not prompt the user to re-enter the value again.
    how to adjust
    while(*gramEmitted>=0.31 && gramEmitted<=0.39*) {
    System.out.print("Your grams emitted value is not valid ... Please re-enter \n");
    System.out.print("Enter number of grams emitted per mile >> ");
    strgramEmitted = request.readLine();
    gramEmitted = Double.parseDouble(strgramEmitted);
    Edited by: Delinda on Oct 21, 2008 11:26 PM

  • What methods in JComboBox controls item matching when user types?

    Hi,
    JComboBox has default behavior that matches String items when user types the first letter in JTextField. The problem is: it always matches the firts letter of an string item; if cannot match an ithem with first 2 or 3 letters typed by user.
    For example, "swing" should be matched if user types "sw" or "swin", etc..
    I am wondering what JComboBox methods controls this behavior so that I can override to change it.
    regards,

    RTFM
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JComboBox.KeySelectionManager.html

  • First letter doesn't type in a new field and keyboard cuts out

    When I switch apps (ie from Firefox to iChat) and try to type in a field, the first letter doesn't show up. I will have to hit it twice to get it to show up then can type normally. On top of that, I get random problems where my keyboard will just stop working. I have to unplug it and replug it and it will be fine. What can I do about these issues?

    Hello i:
    You might try resetting the PRAM:
    http://support.apple.com/kb/HT1379
    Barry

  • My ipad keypad make a loud snap noise when I start to type. It's not the regular click sound it sounds like an electric snap and it just started to happen. It only snaps when I type the first letter

    My ipad keypad makes a loud snap noise when I start to type. It's not the regular click sound it sounds like an electric snap and it just started to happen. It only snaps when I type the first letter
    Ipad only about 2 months old. 64gb cellular
    Has anyone had this problem?

    in the future, buy this, this is what the Pros use:
    for drops, accidents, spills, loss, or theft, purchase a TYPE of insurance called "inland marine insurance"
    roughly $30 per year for a device(s) with 0 deductible, used same for over 20 years, same insurance the pros use on their portable devices.
    very cheap, very useful insurance, most people dont know about same.
    http://en.wikipedia.org/wiki/Inland_marine_insurance

  • How do i stop firefox from auto suggesting my email adress after i type the first letter

    after the first letter typed it comes up with lots of suggestions even ones i've typed by mistake and i would like to clear these

    You can very quickly eliminate the mistyped entries with the down cursor key and use of "Del" key on the selected item ("Shift+Del" on a Mac). So you would just have the ones you want. You do not need to type the first letter you can double-click within the entry box to see all items whether to use or to delete.
    That does not answer what you asked. If you only want to suppress that, I don't think that would be possible with Firefox alone, but I also would not think that you would want to suppress all autoform entry because of that.

  • I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click. How do I get version 4 to do this? Thanks.

    I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click.
    How do I get version 4 to do this?
    Thanks.

    The new but not-ready-for-prime-time autocomplete method searches for matches that contain the entered text, not just ones that begin with the string. Your options are:
    1) type in longer strings that narrow the search
    2) use an add-on to search just the beginnings:
    https://support.mozilla.org/en-US/questions/1037469
    3) install an older version of TB:
    http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/

  • When i first created my itunes account it selected the local country i lived in, now i have changed countries and it does allow me to buy any apps as the credit card is not valid in that country. what do i do?

    When i first created my itunes account it selected the local country i lived in, now i have changed countries and it does allow me to buy any apps as the credit card is not valid in that country. what do i do?

    You will need to sign into your account using the iTunes app on your Mac or PC and change the region/country for your account. If you do not have a bank card for the new country, you should be able to make purchases with iTunes Gift Cards if they are available in the new country.

  • I "reply"ed to an e-mail message. The next time when I chose to write a new message and type the first letter of the person I replied to earlier, that name and e-mail address appears as a choice included in a pop up list of my contacts.

    I "reply"ed to an e-mail message. The next time when I chose to write a new message and type the first letter of the person I replied to earlier, that name and e-mail address appears as a choice included in a pop up list of my contacts. The persons name is not in my contacts and I would like to delete it from popping up. Do you know how I can do this?

    The Mail app on the iPad/iPhone/iPod Touch does have an option to clear previous recipients. You can learn to live with it.  But if you want to get rid of it, the only way to remove these cached email addresses from the Mail application is restoring the iPhone/iPod Touch as a new phone/iPod.  If you restore from backup, the cache is also restored.
    This article shows you the screens you will see during the restore:  http://support.apple.com/kb/HT1414

Maybe you are looking for

  • Question on BPEL Process Performance

    Hello, We have a BPEL process reading the datafile through file adapter and upserting into DB using DB Adapter. Our requirement is If there are 10 records to process and two records (record 5 and 9) fail while inserting/updating for some reason(i.e d

  • Space in table cell content

    Hi, I want to add some space before and after the table cell content. I am using setIntercellSpacing() method to achieve that and I could get the required functionality. But its adding space in the Table Header also which looks odd. Is there any way

  • Command Line login of SAP B1

    Hi, Is there a way that i can login to SAP B1 from command line by giving all required values as parameters??? basic intention is to login to B1 from another web/windows application. thanks, laks. Edited by: Lakshman Rao Pilaka on Jul 9, 2009 8:44 AM

  • How can I hear the MIDI Out through my computer?

    A basic question, I'm sure, but my MIDI controller is sending input to Logic, and Logic is recording the MIDI fine, but I can't work out how to get the Out to come through my computer's speakers. It just says 'no out' in the Transport Bar. How do I g

  • Hard Disk filled with invisible volume

    My HD,internal to my MacBookPro is named iPal I use SuperDuper to create a bootable clone on a Western Digital External HD , brand name "My Book" which is the name I left for that drive My MBP is 17 months old and the OEM Hitachi HD is 320 Gig,with a