Conditional Upper Case formatting

Hi there, I need to be able to format the first letter of a word upper case or lower case depending upon whether or not it appears at the start of a sentence. There must be a method of doing this using the String class. Any ideas folks? All contributions greatly appreciated!

It's a remarkably difficult problem to determine whether a sequence of chars constitutes a word, and what constitutes a sentence, especially considering that Java strings can be used to contain text in not only English but also Thai and Inuktitut and Coptic and all of the world's written languages. So perhaps it isn't all that surprising that the language designers didn't feel it necessary to solve that problem within the String class.
However if you have a more restrictive problem domain then perhaps you have an easier problem.

Similar Messages

  • Fetch data from IR to form in UPPER CASE format for text field items

    Hello,
    Can anyone please help with this issue. I have a IR report with form and I want to fetch the data to upper case when I go to the form level to edit the details from the IR report. I am using the Oracle APEX in built automatic row processing DML to update, create or delete the records. Is their any way, where I can convert the data to upper case whenever user creates a new record or updates the existing record using the in-built automatic row processing DML.
    Please help.
    Thanks,
    Orton

    Jari,
    I have tried your option but no luck. The thing is the text is getting converted from lower to upper case when i navigate from report to form level. But I want to save the data to the database all upper case, even if the user enters data in lower case and this applies for both inserts and updates. Whenever i tried to create or update a record, all the data should be converted to upper case before inserting or updating to the database.
    Please help.
    Thanks,
    Orton

  • Format Arguments for upper case in Documaker

    Hi All,
    I have a DAL scripts which uses the XPath for customer. The customer names are coming in upper and lower came and some time mixed. I would like to make the first letter of the name ( first name, Middle name and last name) uppercase.
    from DAL reference book:
    Enter <> to capitalize the first letter of the resulting text. This flag is valid for the following codes and ignored on all others: %<>p, %<>A, %<>b, %<>B For example, if %p results in AM, %<>p produces Am.
    Cust_name_temp=" adam miline"
    Cust_name_temp= format(Cust_name_temp,,"%<>p") - this is not giving the result as "Adam Miline".
    Please help on the same.
    Debasish

    Hi,
    DAL does not have a direct function to do this.
    As an alternative,  the Move_It rule offers a Title Case format.
    thanks

  • Exporting as CSV loses upper case text format

    Hi Folks,
    When I format a column of text to upper case and export the sheet as .csv, It reverts to whatever random format it had before. The column is for states in a list of addresses.
    I also wish I could format text in lower case if needed.
    Any ideas?

    In iWork's components, applying a style "uppercase" or "lowercase" doesn't change the case of the data. It just display it as asked.
    So, when we export in a text only format, we lose the style and grab the data as it was typed.
    I understand that the developper feel safe to keep the original data intact but here it may appear as an annoying feature.
    This is why I already asked them for added feature alloying us to really change the case as we wish.
    Of course, I don't know if they will insert these features.
    Yvan KOENIG (from FRANCE mardi 29 avril 2008 18:12:53)

  • "to upper case"-function in where condition

    Hello all,
    This code below meets my purpose, but I find it very "ugly":
    * c1 is %
    TRANSLATE NACHN TO UPPER CASE.
    CONCATENATE c1 NACHN c1 into NACHN.
    TRANSLATE VORNA TO UPPER CASE.
    CONCATENATE c1 VORNA c1 into VORNA.
    SELECT *
      INTO CORRESPONDING FIELDS OF it0002
      FROM PA0002.
       TRANSLATE it0002-nachn TO UPPER CASE.
       TRANSLATE it0002-vorna TO UPPER CASE.
        if it0002-nachn cp NACHN AND it0002-vorna cp vorna.
        endif.
    ENDSELECT.
    What I really want is to find something like this:
    TRANSLATE NACHN TO UPPER CASE.
    CONCATENATE c1 NACHN c1 into NACHN.
    TRANSLATE VORNA TO UPPER CASE.
    CONCATENATE c1 VORNA c1 into VORNA.
    SELECT *
      INTO CORRESPONDING FIELDS OF it0002
      FROM PA0002.
      WHERE upper(nachn) like upper(nachn) AND upper(vorna) like upper(vorna).
    ENDSELECT.
    The code above doesn't work (you cannot use "upper" on the table pa0002 fields)
    Can anyone help me on this one?

    Hi,
    You can write your code in below way.
    TRANSLATE NACHN TO UPPER CASE.
    CONCATENATE c1 NACHN c1 into NACHN.
    TRANSLATE VORNA TO UPPER CASE.
    CONCATENATE c1 VORNA c1 into VORNA.
    SELECT *
      INTO CORRESPONDING FIELDS OF it0002
      FROM PA0002.
      WHERE nachn like NACHN 
      AND      vorna   like VORNA.
    ENDSELECT.
    Hope this may help.
    Regards,
    Sravanthi

  • How to cast a fieldinput value to upper case.

    Im not a java programer I guess that this must be a silly thing.
    Im searching data in R/3 from 2 fields 1 numeric and the other alphanumeric. This alphanumeric fields if I put it in upper case works, if I wirte it in lower case doesnt works.
    In R/3 when I test the FM doesnt matter if I put it lower or upper case, it works fine.
    so I wanna know how can I in WD cast the value that I put in that fieldinput be converted to upper case when I hit the search button.
    Thx

    > Im not a java programer I guess that this must be a
    > silly thing.
    >
    > Im searching data in R/3 from 2 fields 1 numeric and
    > the other alphanumeric. This alphanumeric fields if I
    > put it in upper case works, if I wirte it in lower
    > case doesnt works.
    >
    > In R/3 when I test the FM doesnt matter if I put it
    > lower or upper case, it works fine.
    >
    > so I wanna know how can I in WD cast the value that I
    > put in that fieldinput be converted to upper case
    > when I hit the search button.
    >
    > Thx
    Hi,
    When you test the FM in SE37 in R3 there is an option at the top of the screen Called Uppercase/Lowercase - this controls whether the input is automatically converted to upper case for alphanumeric fields.
    The other option you have, if it is a custom FM, is to translate the input of the alphanumeric fields in the ABAP - it is quite common to have to translate or convert input data to make sure it is in the same format as the backend system.
    I prefer to do this sort of conversion on the backend system as usually you have a better guarentee that it will be in the correct format, than if you do it in the Java element.
    Just my opinion,
    Gareth.

  • JDBC send data to oracle, oracle only accept column name in Upper case

    Hi experts,
    I am doing a scenario File --> XI --> JDBC,  JDBC send data to a Oracle 10g database, I have configured JDBC receiver to use XML-SQL format. in oracle database ,  table "EMPLOYEE" has a column "NAME", but when I send data to oracle using JDBC receiver, the column is "name", then XI complains
    " 'EMPLOYEE' (structure 'insert'): java.sql.SQLException: FATAL ERROR: Column 'name' does not exist in table 'EMPLOYEE'.
    can anyone help me to let oracle accpet column "name". I can't change colum in JDBC receiver from "name" to "NAME".
    Thanks a lot.

    <i>can anyone help me to let oracle accpet column "name"</i>
    Making Oracle case insensitive is not possible (in my opinion). By default all object names are stored in UPPER case in the rdbms dictionary.
    When XI searches for column name in Oracle, this search is case sensitive. So u have to configure accordingly.
    Regards,
    Prateek

  • How to CHECK WHETHER LOWER CASE OR UPPER CASE  IN CUSTOM TABLE

    Dear Friends,
                     I have a requirement where from  the flat file  i have collected into the internal table is as below :
      IDNo.     Name     Date      Location   Designation  Dept
      101       raja      4/12/2007  Delhi      manager      HR
      102       james    4/12/2007  Delhi      clerk          HR
    now iam checking against my custom table where iam   if the designation for the employee name already exists then i shouldnt modify/update the custom table that record
      now iam facing a problem where is the flat file is always having the Lower Case only ,
    as per the scenario  if my custom table already have the employee name i shouldnt modify/update i.e i shouldnt overwrite,
    this scenario is working but it is failing in the case
    by chance in the Custom table the employee name or designation is in Upper Case  the condition where iam checking in the code  is failing as the flat file data coming into the internal table is having always lower Case.
    So could any one please let me know how i should check in my custom table whether iam having upper case or lower case and how can i make it lower case ?
    because iam able to manage in the case where if the flat file data coming in Upper case i can check before only by
    using Translate to lower case . how i unalbe to  check for the data coming from the Custom table if  in Uppercase , so i want to change that to lower case then checking my condition whether that data already exists in my custom table before modifying the data coming from the flat .
    because the condition is failing when the data in the custom table is in upper case and the Flat file data is in lower case.
    please help how i can check for the data in the Custom table is in upper case and then change it to lower case.
    Regards
    Madhuri.

    Hi Madhuri,
    Translate both data in your flat file & custom table to lowercase before comparing them. With that, you're able to identify if there's a differences in for both data.
    If you're putting data that is pulled from custom table, what you can do is after selecting/reading the data, translate to lowercase or uppercase (whichever you prefer) but make sure if you translate to lowercase, your data in the flat file must be lowercase to and vice versa.
    Happy doing !!..
    Regards,
    Loo

  • File name gets converted to upper case

    I am facing an unusual problem with Solaris 10. When I insert an USB thumb drive formatted with FAT to copy some file from the stick, some of the files whatever gets copied to hard disk get their file names changed to upper case. This is quite random, at least, I am not being able to figure out what pattern of file names are causing this problem. Any suggestions?
    Edited by: Holmes.Sherlock on Dec 4, 2012 1:13 PM

    Hi...
    you can translate the password in upper case before call bapi....
    translate psw to upper case.
    regards
    Marco

  • How do I make my text field automatically upper case?

    How do I make my text field in a form automatically upper case?

    Use the following as the text field's custom Keystroke JavaScript (choose a Format type of Custom):
    // Keystroke script for text field
    event.change = event.change.toUpperCase();

  • Zero Fill and Upper Case in Visual Composer not working

    Hello,
    I am building my first VC application and hit a small wall from get go. When I create input fields and set text formats for one to have "Zero Fill" and for the other one "Upper Case" they do not seem to work properly.
    “Zero Fill” does not work at all. I set this format and also set max length as 10 to be used as input for customer account #. But it does not perform conversion. When I call a BAPI to get customer list, if I enter 0000000100 it works. When I enter 100 it does not work. Thus "Zero Fill" does not take effect.
    "Upper case" works but only after refresh. If I enter ac10 as company code and then click submit it does not work. However if after entering ac10 I press enter and then submit, it work.
    Does anyone have any info on how to deal with this? We are using VC 7.0
    Thanks,
    Alex

    Hi ALex,
    Now I got your problem. I suggest a solution for it.
    Go to the design board of VC.
    I think you have an Input Form that contains the input fields and the Submit button. There will be a link named "submit"between the Input Form & the Data Service(say BAPI). Click on the  submit link, you will get the Input Fields & Assigned values of the Input Form at the bottom right side. Go to the Assigned Value of the particular field & apply a formula like UPPER(@inputfield). So now whatever case you give in the inputfield, it is converted to UPPER case before Submiting the values.Keep the Upper Case option checked at the formatting tab of the Input field properties, this will help to display the value in Upper case.
    For eg, BAPI_BANK_GETLIST, the input fields are BANK_CTRY & MAX_ROWS.
    Make the assigned value of bank_ctry as UPPER(@BANK_CTRY), you can get this with the help of formula. 
    This will solve your problem.
    Regards,
    Shemim

  • Translate search parameters to lower and upper case

    Hi All,
    I need to create a search function. Is it possible to translate the search paramaters to  both upper and lower case because inside the data there are data with upper case or lower case or both.
    Thanks in advance.

    Hi ,
      As per your requirement you have to write logic for three conditions :
    1. Translate whole word into upper case .
        TRANSLATE  your field name  TO UPPERCASE.
    2. Translate whole word into lower case .
        TRANSLATE  your field name  TO LOWERCASE.
    3. First character of your field should be in uppercase rest in lower case .
    so write your logic now considering third point also .
    Regards ,
    Nilesh Jain .

  • To convert the values in the column from upper case to Camel Case.

    Hi All,
    I have requirement to convert the column values(Data in the Columns) from upper case to camel case in pivot table view.
    For Eg:
    I have
    Table Name:Billing_Transaction
    under Billing_Transaction table i Have column Comment_Text
    Data in Comment_Text Column is
    INSERT,
    EXPORT,
    AMEND
    How i will change these values in to Insert,Export,Amend.(Camel Case condition)
    I want only the first letter of a word to be in caps and others to be in smaller case.
    Thanks,
    Chitra Subramani.

    Hi Aravind,
    Thanks for immediate response.your query is helpful.But i need to satisfy another condition in my requirement by using same formula.
    "REPLACE(UPPER(SUBSTRING(BILLING_TRANSACTION.BILLING_TRANSACTION_DESC FROM 1 FOR 1)) || lower(substring(BILLING_TRANSACTION.BILLING_TRANSACTION_DESC FROM 2)), '_', ' ')"
    above query satisfying Camil case and replacing '_' with ' '(space)......but inthis query i want add another condition to satisfy camil case for word which comes after '_'
    for example:
    DECLINE_IMPORT
    above query satisfying 2 conditions to convert above data into
    "Decline import"
    But in my requirement for word 'import' also it should come in camil case condition like
    "Decline Import"
    Thanks & Regards,
    Chitra
    Edited by: user6371773 on Apr 25, 2011 6:29 AM

  • How can I define that the value of a column should always be in UPPER case

    Hi,
    I want to make sure that the value in a column is always in UPPER case.
    Can we give this condition while creating or altering a table.
    A trigger can do it easily, but I was wondering if we could define a column to have values with upper case all the time, independent of what values are inserted. I mean if we give a lower case value in the insert statement, it should be converted automatically to upper case & stored.
    I want something like
    Alter table MY_TABLE Modify ( col1_upper varchar2(25) default UPPER(Col1_upper));
    But the above statement does not work as it references the col of the table.
    Thanks
    Sunil

    Well, you can put a check constraint on to prevent someone from putting lowercase data in:
    alter table my_table add constraint my_table_check_upper check (col1_upper = upper(col1_upper));However, I know of no way to modify the data being inserted/updated in a table without a trigger.
    Richard

  • How to disable Automatic UPPER case in SQL Developer

    Hi,
    I am using SQL developer more than two years. I have recently downloaded SQL Developer 2.1.1.64.
    My problem is, while editing the package body when move to newline the previous line get converted to UPPER case automatically. But, I don't want to get all the code I have written to be converted to UPPER case.
    I have tried all possible preference changes but no change. Can you please help me how disable the case change in SQL developer.
    Looking forward your response.
    Thanks,
    Prashantha Konkodi

    You can always define how you want to format the SQL or normal text by using the keyboard CTRL+' to manage text/keyword case to all UPPERCASE, Initcap, or all lowercase.
    The system remembers your settings and will keep the text the same format in future.

Maybe you are looking for

  • SSRS Timeout issue

    I am using SSRS for generate reports in my .net web application. For one of the report, an error "An error has occurred during report processing." is returned after 100s. The report can be generated successfully in report server at around 3 minutes.

  • Camera and volume buttons

    Is there anyway to stop the camera and volume buttons from waking up the screen when in your pocket to save battery life?

  • How to handle idoc status record.

    Hi expert, We have configure custom idoc, the status of inbound custom idoc when posting by process code is 64 (Ready to posting), How we can post with status 54, have any idea ? When I am using report RBDAPP01, it is in status 51 (Error), How I can

  • Safari 5.0.3 on Windows 7 64-Bit - Downloads all have a lock icon

    Every files I download from Safari always gets a lock icon, which means only an administrator can access the file. It's not really that much of a pain, as it is a quick and easy fix, but the point is this shouldn't be happening. Here's what it looks

  • Photoshop trial version does not run on macbook pro operations system

    hi, i've alreasy made an update of my macbook pro, but the trial version of photoshop is still not running "on this operation system". anyone?