How to insert a carriage return chr(13) to a message box

On my form I have a button, called "Instruction".
When the user clicks on it, I present him with a message box expalining key points about the form and the fields.
Here a dummy example:
xfa.host.messageBox("Hello Everyone! The form contains 5 required field identied by Red border. Make sure you fill them before submitting the form. To calculate the winner percentage you Must fill in the number of tables first."
, "INSTRUCTION", 3);
There must be a way to insert a line in a message box, such as chr(13).
What's the syntax?

To enter a CR in a string for javascript use a \n in the text of your string.
paul

Similar Messages

  • How to insert a carriage return in a varchar field

    Post Author: gilles
    CA Forum: Data Integration
    Hello,
    How do you insert a carriage return in a varchar field in BODI ? I couldn't find a function like CHAR(13)...
    Thanks
    Gilles

    Post Author: gilles
    CA Forum: Data Integration
    Thanks a lot,
    I'll upgrade to 11.7 (currently 11.5.1)
    Gilles

  • How to insert a carriage return/line feed in a TextEdit without using wrap

    Hi,
    The string that I want to pass to the textedit is
    "Order Notes : bla bla bla
    Shipping notes : bla bla bla"
    The length of Order notes and shipping notes can vary.
    I am using wrapping. But I need to insert a line feed just before Shipping Notes so it comes on a different line inside the textedit box.
    How do I achieve this?
    Thanks in advance,
    Sachin

    Good thinking, Craig
    I didn't think of this large textarea being present there, just waiting for a question like this ...
    To sum it up for the lazy ones (cause looking at the examples is always worth it, so go do as Craig told ya g!):
    CONCATENATE
    `Order Notes : bla bla bla`
    `Shipping notes : bla bla bla`
    INTO text SEPARATED BY cl_abap_char_utilities=>cr_lf.

  • How to insert a "carriage return" in a text of a mail ?

    Hi to all,
    I'm facing a problem in an FB desktop app (WIN) which is supposed to automatically send emails.
    Everything works ok except that the line feed instructions inserted in the mail text are ok if i try to visualize the text in a preview textfield in FB, but are not taken in consideration in the message displayed on the recipient screen (both with outlook and thunderbird).
    I've tried various solutions such as "\n" or String.fromCharCode(13) + String.fromCharCode(10) without success.
    Thks in advance for help
    Best regards

    Post Author: gilles
    CA Forum: Data Integration
    Thanks a lot,
    I'll upgrade to 11.7 (currently 11.5.1)
    Gilles

  • How to insert a Carriage Return + Line Feed inside a TextView UI element ?

    Hello All,
      Does anyone know how can I achieve the above scenario ? I have a string variable that collects and appeneds text messages from various BAPI calls. At the end of the process, the contents of this variable will be mapped to a textview. Problem is, the length of the string collected is way too long and hence not very readable.  I am not able to find a way to introduce a CRLF after each message is read and appended. Can anyone advise ? Thank you.
    from
    Kwok Wei

    Hi Renjith,
      So far I manage to get find a walk-around to the problem by using the TextEdit as what you have suggested. This works fine... till when you try to print it out. As you see, during printing, I need to remove the vertical scrollbar and ensure that all the text are properly displayed and I do not see any visibleFooter = false option (similar to that of a table) available to the TextEdit.
      If anyone has any suggestions or a more feasible walk around that allows me to print the entire contents in the TextEdit, that will be greatly appreciated
    from
    Kwok Wei

  • How do you insert a carriage return into a string ?

    Hi,
    I don't know how to insert a carriage return, \n ,into a string
    without the carriage return being interpeted. I am trying to build
    a string called queryVariable from the file below so that it equates
    to the necessary format for JDBC to execute the query.
    SQL script file:
    declare @x datetime
    select @x = null
    exec OSVBAK01...demand_dump PRODUCT,FULL,@x
    go     
    required string format for query:
    "declare @x datetime\n"+"select @x = null\n"+
    "exec OSVBAK01...demand_dump PRODUCT,FULL,@x";     
    void Readfile(String path, String infilename) {
    try {
    File file = new File(path + infilename);
         if (!file.exists()) {
         System.err.println("File not found");
         BufferedReader in = new BufferedReader
    (new FileReader(file));
         String str;
         String queryVariable = "";
         StringBuffer sb = new StringBuffer();
         while ((str = in.readLine()) != null) {
         sb.append("\"").append(str).append("\n\"")
    .append("+");                              
         in.close();
         queryVariable = sb.toString();
         System.out.println(queryVariable);
    } catch (IOException e) {
         System.err.println(e.getCause());
    queryVariable equates to the following after running the code above:
    "declare @x datetime
    "+"select @x = null
    "+"exec OSVBAK01...demand_dump PRODUCT,FULL,@x
    "+"go     
    "+
    Any assistance anyone could provide would be greatly appreciated.
    Thanks for your time,
    YAM-SSM

    Interesting... that would mean, of course, that in the case of concatenating string literals (outside of loops, as they say), the compiler is optimizing the code to avoid the need for using StringBuffers internally. Actually, it's good to know this, as I wasn't aware of this optimization.
    However, the post wasn't meant to be serious... I hoped that was obvious. Everyone's spouting off nearly the same thing for adding strings and line separators and whatever.

  • How to add a carriage return

    Hi
    How to add a carriage return after Survey Type, so that the Channel Time will start from column one.
    Thanks,
    Steve
    Solved!
    Go to Solution.
    Attachments:
    Write.vi ‏39 KB

    try something like the following draft. (not tested, so modify as needed).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Write-MOD.vi ‏32 KB

  • How do we remove Carriage Return (line feed) inserted in FCC files

    Hi Experts,
    The file that we generate has a carriage return at the end.
    Is there any way in which we can remove this carriage return (line feed) from the file?
    The FCC parameters used at our end are as below:
    structure.filedNames:
    structure.fieldFixedLengths:
    structure.fixedLengthTooShortHandling: Cut
    Kindly tell us a solution ASAP.
    Thanks & Regards
    Dhwani

    Dear All,
    Let me elaborate on my query
    Consider that the files output looks like below:
    12  34  45  545 5454 UL
    23  33  43  434 4545 FG
    45  44  44  586 6535 GM
    Now there is an extra line(Carriage Return) getting inserted after the last line 45  44  44  586 6535 GM  which is not required at our end.
    The cursor of the file instead of stopping on the last character M, points to the next line.
    Can you please suggest how to remove this extra line from the files.
    I dont understan how will remove context help in this case.
    Regards
    Dhwani

  • How to find a carriage return and Line feed?

    I need to detect if a crriage retunr and line feed present on each row in my text file before allowing user to upload the text file
    I know how to remove them from each line but what I need is to detect them no removing them from file.
    Our concern is when the a row does not have carriage return and line feed.
    Is there a way to find this using CF? Please help
    thanks

    That is exactly the problem Dave, if some rows do not have line feed, they're not being inserted into DB, it skips other steps and go right to finish. It looks
    like the file is done processing.
    So I need to do early rejection to this kind of file.
    I used cfloop to catch anything else that do not follow the formatting rules.
    Here is what I already done:
    Right after the file got uploaded, I have these codes:   
    <cfloop  index="x" file="#MyFile#" >
      <CFSETMyLine = Replace(x,chr(9),"|", "ALL")>
      I'm using a few functions, such as, Left(), Mid(), Right(), etc to make sure certain rules are followed.
      Up till here, it's done and tested, everything is working.
      The only problem is when 1 or more rows don't end up with line feed and or carriage return.
      I plan to add some codes to check the end of each row for chr(10) since it is looping for every row anyway.
      If detected, process file normally otherwise stop processing.
    </cfloop>
    So this can't be done in CF?

  • How does one replace carriage returns (enter key) in text areas

    I have an address text area in one of my pages where end users are hitting enter after each part of the address. I want to replace the carriage return hex('0A') with spaces. How can I do that?

    If you're manually saving your data, you can just change your insert/update code as below:
    insert into myTable
    (myCol)
    values
    (replace(:PXX_MY_TEXT_AREA, Chr(10), ' '))
    where ...If you're building a page where you aren't directly saving your data, you can add an "on Submit/Before Computation" process that does something like:
    :PXX_MY_TEXT_AREA := replace(:PXX_MY_TEXT_AREA, Chr(10), ' ');

  • Interactive Report: how can I display carriage returns?

    Hello everybody.
    Here is my problem: I created a table containing a field COMMENT varchar2(4000) and using APEX 4.1 I built an interactive report on it.
    Users can fill the field COMMENT with sentences on different rows, ex:
    " this is the first line
    this is the second line
    this is the third line"
    This is correctly managed in the FORM, where I defined the field COMMENT as 'Text Area', but in the REPORT I wasn't able to set it in a way which permits to see it whit the carriage returns: the content is displayed on one row only : "this is the first linethis is the second linethis is the third line".
    I tried and set all the possible field types, but I found no ways to display the content exactly as it is (with carriage returns).
    Obviously I cannot use HTML
    , since I cannot ask users to digit it when inserting their text.
    Could someone suggest me how to reach this result? In need to use the interactive report because the searching/filtering tool is fundamental.
    Thanks in advance,
    Daniele

    >
    Please update your forum profile with a real handle instead of "user9211286".
    Here is my problem: I created a table containing a field COMMENT varchar2(4000) and using APEX 4.1 I built an interactive report on it.
    Users can fill the field COMMENT with sentences on different rows, ex:
    " this is the first line
    this is the second line
    this is the third line"
    This is correctly managed in the FORM, where I defined the field COMMENT as 'Text Area', but in the REPORT I wasn't able to set it in a way which permits to see it whit the carriage returns: the content is displayed on one row only : "this is the first linethis is the second linethis is the third line".
    I tried and set all the possible field types, but I found no ways to display the content exactly as it is (with carriage returns).
    Obviously I cannot use HTML
    , since I cannot ask users to digit it when inserting their text.
    Could someone suggest me how to reach this result? In need to use the interactive report because the searching/filtering tool is fundamental.Use a CSS style sheet with attribute selectors. Put this in the page HTML Header, replacing the <tt>T_EMP_NAME</tt> etc selectors with the actual <tt>id</tt> attributes of your column headers:
    <style type="text/css">
    .apexir_WORKSHEET_DATA td[headers="T_EMP_NAME"] {
      white-space: pre;
    </style>
    Interactive Report Control Break disregards HTML Header style.

  • How to put a carriage return in a String

    I am creating an error message on my class which is called and displayed on my JSP page.
    In my string I want it to do a Carriage return. I used a \n however it just ignores it when displayed in JSP using scriplets.
    Class declaration:
    -- Want this line to start on the next line..
    /** Used for the Error message for a text box. */
    private final String TEXTBOX_ERROR_MSG = "\n NOTE: The text box characters left count may not be accurate.";
    Used in getDBErrors() method:
    --errors is an array of error records displayed in the JSP
    if(this.notes != null && this.notes.length() > 4000)
         errors.add("Notes Tab: Notes section cannot be greater than 4000 characters." +  this.TEXTBOX_ERROR_MSG);
    JSP Page code:
    --Get the list of Errors from the class
    List pbrDBErrors = editBean.getDBErrors();     
    -- Display errors:
    for(int l=0; l<pbrDBErrors.size(); l++)
    %>
    <li>
        ----------- Display ERROR Message Here
        <%= (String)pbrDBErrors.get(l) %>
    </li>
    <%
    } %>++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    All the code works great - Its just the TEXTBOX_ERROR_MSG is displayed on the same line as the rest of the message and it scrolls off the page.
    How do it get it to do a cariage return?? \n does not seem to work.
    Thanks

    I learned something new today.. I guess I can go home :)
    I am creating an error message on my class which is
    called and displayed on my JSP page.
    In my string I want it to do a Carriage return. I
    used a \n however it just ignores it when displayed
    in JSP using scriplets.
    Class declaration:
    -- Want this line to start on the next line..
    /** Used for the Error message for a text box.
    private final String TEXTBOX_ERROR_MSG = "\n NOTE:
    The text box characters left count may not be
    accurate.";
    Used in getDBErrors() method:
    --errors is an array of error records displayed in
    the JSP
    if(this.notes != null && this.notes.length() >
    4000)
    errors.add("Notes Tab: Notes section cannot be
    ot be greater than 4000 characters." +
    this.TEXTBOX_ERROR_MSG);
    JSP Page code:
    --Get the list of Errors from the class
    List pbrDBErrors = editBean.getDBErrors();     
    -- Display errors:
    for(int l=0; l<pbrDBErrors.size(); l++)
    %>
    <li>
    ----------- Display ERROR Message Here
    <%= (String)pbrDBErrors.get(l) %>
    </li>
    <%
    } %>++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ++
    All the code works great - Its just the
    TEXTBOX_ERROR_MSG is displayed on the same line as
    the rest of the message and it scrolls off the page.
    How do it get it to do a cariage return?? \n does not
    seem to work.
    ThanksThanks the <br> worked great....

  • Insert a Carriage Return in template

    Hello All,
    I need to replace a character '#' with carriage return in form field of RTF Template, Is it possible to do it. I am using XML publisher 5.0.
    Eg: <SAMPLE>123#345#567</SAMPLE>
    Output:
    <SAMPLE>123
    345
    567</SAMPLE>
    Your response is appreciated.

    111 <?xdoxslt:chr(10)?>2222will give you the new line character,
    in-between 111 and 2222 there will be in new line.
    http://winrichman.blogspot.com/search/label/BIP%20xsl%20extended%20function
    But you need latest version for this :)
    if am not wrong, this function was introduced above 10.1.3.3.+
    latest BIP EBS version should have this extended function too.

  • How to include a carriage return in a TestStand string variable

    Is there anyway to add a carriage return to a TestStand string variable. I am sending commands to an instrument using the Rs232 serial bus and they need to be terminated with a carriage return ie "\r". I know you can creat a DLL and return the string variables to TestStand but is there a beter way ?

    Hi Paul,
    Sorry about that, just noticed I left off the "" in my last response.
    Try "\\r".  that should solve it.
    Regards
    Ray Farmer
    Message Edited by Ray Farmer on 09-15-2005 09:14 AM
    Regards
    Ray Farmer

  • Invalid column name - fixed by inserting a carriage return - Why?

    I'm writing some JSP pages and am executing a statement that retrieves values from three tables.
    When executing the statement I receive the error
    java.sql.SQLException: Invalid column name
    I just want to state here that ALL the column names are definitely correct. I attempted to isolate the problem using my SQL*Plus Interface.
    When copying and pasting the SQL that was used (I put the SQL statement into the HTML to allow me to do this) into SQL*Plus it also come up with the error. I found that if I broke up the statement it would run. Specifically if I placed a carriage return (by hitting enter) prior to the 'A' of the AND operator and then copied and pasted into SQL*Plus it would work!
    I thought the problem was related to bad syntax in the outer join operator. But removal of the outer join operator and making it a EQUI JOIN situation still gave the same results. I tried the use of brackets to 'help' the DB engine figure it out - silly I know, but it didn't work anyway :(
    I've tried this out on UNIX in SQL*Plus where the query was on one line and it worked fine. I've tried it on Oracle 8.1.5 SQL*Plus & Oracle 8.1.7 SQL*Plus on Win2000 and WinNT and no go.
    It has also been tested on an Oracle 7.3.4 DB and no go either.
    Remember I'm only using SQL*Plus to find out why it is not working - I'm actually attempting to execute this via JDBC (classes12.zip Oracle9 version) in my JavaBean. I can't place a carriage return to 'fix' the problem, and I'm assuming that I shouldn't either.
    I've pasted the SQL below (both non-working and working versions). I was going to paste the output of DESC on the associated tables should you too would rule out a mispelled column name, but I didn't want to put anyone off with a long post.
    If you can provide any advice I would be very appreciative.
    Darren James
    Show Me Technology
    SQL> SELECT UNIT.Asset_Number,Model,PERSON.Novell_User_Name FROM
    UNIT, UNIT_USERS, PERSON
    2 WHERE UNIT.Hardware_Reference_Number =
    UNIT_USERS.Hardware_Reference_Number(+) AND UNIT_USERS
    .Novell_User_Name = PERSON.Novell_User_Name (+) ORDER BY Make,
    Model, Asset_Number,Serial_Number,
    UNIT.Hardware_Reference_Number,Unit_Type,PERSON.Last_Name,PERSON.Fi
    rst_Name,PERSON.Novell_User_Name;
    3 /
    WHERE UNIT.Hardware_Reference_Number =
    UNIT_USERS.Hardware_Reference_Number(+) AND UNIT_USERS.Novel
    ERROR at line 2:
    ORA-00904: invalid column name
    REM -- Using the one with an return prior to the AND
    SQL> SELECT UNIT.Asset_Number,Model,PERSON.Novell_User_Name FROM
    UNIT, UNIT_USERS, PERSON
    2 WHERE UNIT.Hardware_Reference_Number =
    UNIT_USERS.Hardware_Reference_Number(+)
    3 AND UNIT_USERS.Novell_User_Name = PERSON.Novell_User_Name
    (+) ORDER BY Make, Model,
    4 Asset_Number,Serial_Number,
    5
    UNIT.Hardware_Reference_Number,Unit_Type,PERSON.Last_Name,PERSON.Fi
    rst_Name,PERSON.Novell_User_
    Name;
    ASSET_NUMBER
    MODEL
    NOVELL_USE
    10023445
    desktop raider
    tabisho
    10023445
    desktop raider
    pjblee
    100349864
    VEi8
    SQL>

    Ok. I feel ashamed that the answer was so simple and not the
    problem I thought it was. But in the interests of perhaps
    preventing someone else doing the same silly thing....
    The error was caused by using a wrong name when 'getting' the
    values int the return ResultSet object. (eg using getString
    ("s.Some_Name") when it should have been getString
    ("s.Another_Name").
    Interestingly the error did occur in one of our SQL*Plus
    versions. Why we still are not sure, but since this was a silly
    error on my part, I'm sure a similarly silly reason will be the
    cause there two.
    I appreciate those who responded though. It is a great resource.
    Darren James
    I'm just guessing here, but could it be some sort of a size thing? Could it be that, if you don't break up line 2, somehow
    it gets truncated or wrapped at an inappropriate place? To test
    this theory, you might try putting the carriage return in front
    of the ORDER BY, instead of in front of the AND, and see if it
    has the same effect. If you do get it figured out, please
    satisfy our curiosity and let us know.

Maybe you are looking for

  • How to configure or pair a Bright House Remote (Universal Electronics Atlas) with Apple TV

    I live in Central Florida and have Bright House Networks as my cable provider.  The remote I received for my Digital Television service is a ATLAS OCAP 5-Device by Universal Electronics. When I tried to have the Apple TV learn this remote it didnt wo

  • Problem notifing objects.

    One object do that: boolean ack_recibido = peticion.enviarRequest(request,this);           if (ack_recibido==true)                try {                     wait(timeout);                      System.out.println("timeout passed");                     

  • In cards, why isn't there a simple folded picture card anymore?

    There used to be a simple folded picture card in iphoto cards. You could add writing inside, with no cutesy crap or polka dots, etc. and print it out yourself. Am I missing something?

  • How do you remove an email that is stuck in send mode

    I tried to email a message with a large attachment that is now stuck somewhere and I have a message that says sending 1 of 1.  I have tried clearing the memory a few times and tried to restarting the phone but it does not go away. Thanks

  • DTP - Sending 1 datapackage manually

    Dear All, I have DTPed 50 data packages from PSA to ODS. But te 42nd data package is still yellow status. All the others are green. So the dtp is showing yellow status. Can I manually send this one datapackage? If so how? I checked another thing. "Ma