Possible to add the Carriage Return Character

Hi all,
I need to add the Carriage Return characters at the end of the each paragraphs.  I found the insertTextAsContent (using: {String | SpecialCharacters} , position: XMLElementPosition), but don't know how to use this function. I think in this method accept only the position as XML Element Object.
How to use this function to achieve my task?.
Using: InDesign CS4/Javascript/Windows.
Regards,
Karpanai

you could do: string += "\r";
\r is a carriage return, and \n is a newline

Similar Messages

  • How do I add a carriage return to the output ?

    I have a listBox with 15 values. That list box is connected to a textBox. The text box prints only the selected items from the listBox (thanks try67 for the help getting that set up). Now what I would like to do is have each of the items that are selected to appear seperately in lieu of having one lone continuous line. I think what I need to do is add a carriage returne (or two) between each item selected. Here is the code I have for custom calculation script
    var v = this.getField("DiagnosisList").value;
    if (typeof v=="string") event.value = v;
    else event.value = v.join(", ");
    I triend adding  /r/n   but I keep geting syntax error. Thanks for any assistane.

    I appreciate you assistance, but this is not going to work. The narrative on the listBox for each item is so large, that it either gets chopped off or if I set the text size to auto it is too small. Is there a way to display the list items in a format that 'wraps'? If not then I will neet to set it up with check boxes now, but here is how the format should work:
    () item one
    () item two
    () item three
    then allow certain ones to be checked,
    (x) itme one
    () item two
    (x) item three
    and based on the ones checked, those are the only ones that print
    Item one.
    Item two.

  • Add a carriage return in a Unbound String Field

    Post Author: Razzle00
    CA Forum: Formula
    Hi,
         How can I add a carriage return to an unbound string field in a crystal report.  I am using the bundled version of CR with MS Visual Studio 2003 & 2005.  My formula needs to look something like this....
    'Heading One:' + CARRIAGE RETURN + trim({tablename.fld_1}) + CARRIAGE RETURN + 'Heading Two:' + CARRIAGE RETURN  + trim({tablename.fld_2})
    this code all needs to be in 1 unbound string field.  Is this possible?
    Thanks,
    Razzle

    Post Author: SKodidine
    CA Forum: Formula
    To add a carriage return, add CHRW(13)
    For example:
    'Heading One:' & chrw(13) & 'sample text';
    will result in:
    Heading One:
    sample text

  • Removing the carriage return / Tab during data extraction

    Hi ,
      I have an issue with removing the carriage return / Tab from the extracted (Flat File) data from SAP EKPO table.
      1) While uploading(Long Back) the Legacy data to SAP tables the carriage returns and Tabs in Product description were uploaded to SAP tables.
      2) Now I am extracting data from bkpf,..EKPO.. tables  to a flat file . 
    3) When I extract the data i. PO number, Product description,......
    The Product description is going to 3 to 5 lines depending on the carriage returns and Tabs in the Product description.  Ekpo-txz01
    Ex : Mfg # DS104NA / NET######GEAR DS104 Hub######model
        I want  this product description in one continuous line. It is possible only  by removing the Carriage returns and tabs from product description before concatenating and TRANSFERING the file to Server.
    4) What is  getting:  The line is breaking @gear @ Hub due to Carriage return/Tab
    Mfg  D  NET
    GEAR DS104 Hub
    model   .
    5) What is required is: in one line
    Mfg  D  NETGEAR DS104 model
    In the process I am extracting product description from Ekpo-txz01 . So it is internal table. Now I want to remove the carriage return / Tab .
    How these can be removed.
    Thanks,
    Vasu

    Dear Vasu,
    Sometimes there is a problem that cannot be solved normally. This is one of them.
    The reason why the mentioned methods do not work is because you need to remove actually two characters CR and LF in one stroke. You can identify one but then not the other. So approach it from the other side.
    Simply define what your correct characters might be AND only use them to export.
    Below you will find a FORM routine that does just that (only passes defined valid characters and NOT others).
    FORM validate_field USING    VALUE(field_in)
                        CHANGING field_out.
    CONSTANTS:
    All low caps characters
      validlow(26)  TYPE c VALUE 'abcdefghijklmnopqrstuvwxyz',
    All upper caps characters and all figures
      validhigh(36) TYPE c VALUE '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
    All other characters (starting with space)
      validrest(32) TYPE c VALUE ' <,>.?/:;"{[}]|\~`!@#$%^&*()_-+=',
    Single quote
      validquote           VALUE ''''.
      DATA:
        pos(1) TYPE c,         " Container to hold 1 character
        l      TYPE i,         " Length
        i      TYPE i.         " Indexer
    Determine length
      l = STRLEN( field_in ).
    Stripping loop
      WHILE i LT l.
      Get one character 
        pos = field_in+i(1).
      Check its validity
        IF pos CO validlow
        OR pos CO validhigh
        OR pos CO validrest
        OR pos EQ validquote.
        When valid, use it
          concatenate field_out
                      pos
                 into field_out.
        ENDIF.
      ENDWHILE.
    ENDFORM.
    Hopes this helps solving your problem.
    Regards,
    Rob.

  • GREP to Add a Carriage Return at End of Paragraph

    The following search criteria adds a return at the beginning of a paragraph
    Find
    ^.
    Change to:
    ~b$0
    Now I want to instad add a carriage return at the end of the paragraph instead, so I changed my search criteria as shown below, but never get the carriage return. How do I add a carriage return to the end of a pararagh?
    Find
    \z
    Change to:
    ~b

    Peter
    Thanks for your help. I want to create a new, empty paragraph so I can apply a different paragraph style to it than the paragraph style used in the preceding paragraph. Once I have that, I will cut and paste text into the new paragraph that uses the just applied paragraph style.
    Or perhaps more simply, move text that already has a paragraph style applied  to it into a new location, but first have that new location set up with the correct paragraph style so that the formatting is not lost.
    Hope that makes sense.

  • 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

  • Is it possible to add the date to the notifications center?

    im using the new iphone 5 and was wondering if its possible to add the date to the notification center?  i know the date shows up when you have an event scheduled.

    The photo in the calendar replaces the date. You can ctrl-click the photo and add a caption to show the day number.
    Clicking the disclosure triangle to the right of the caption will show a panel where you can edit the font (all this tested in iPhoto 9.5.1), but it does look funny, you'd be better off by not adding the day number:

  • Is it possible to add the games that are on my childrens iphones to the imac?

    is it possible to add the games that are on my childrens iphones to the imac?  I downloaded all of them from the Apps store.  Is it because they need a touch screen for most of these game and therfore will not convey?

    coolerforme wrote:
    ... Is it because they need a touch screen for most of these game and therfore will not convey?
    No, the reason is that iOS and OS X are completely different operating systems. Apps written for one will not work for the other.

  • Is It Possible to add the Actual Quicktime player to a page?

    Does anyone know if it is possible to add the actual quicktime player that you see on your desktop to a page? I want to add a Quicktime movie to a page and still end up with the whole controller not just the little control bar.

    Kyn's response is also your answer.
    To open the QuickTime Player (instead of playing your file in a browser window) is a feature of iWeb that is "missing". Maybe next version?
    I use the special html "tags" in many of my .Mac hosted Web pages:
    http://homepage.mac.com/kkirkster/04war/
    As an example.
    You need to edit the iWeb created page code after publishing to do this work. It may be more work than you've planned because it does require a lot of "hand coding" to your "Published" HTML page code. And, because iWeb also uses special javascripts (.js files) to showcase your QuickTime file, you'll need to hand edit them also.
    There is some freeware software (PAGEot) that can help a bit with the page coding. A Google search for it is easy.
    Editing "published" pages is not for the faint of heart and may be necessary each time your iWeb site is updated.
    Does this answer your personal email to me?
    We can show you the steps when you're ready to implement them.

  • Get rid of the carriage return

    Hello,
    I have a Note column, the column type is CLOB. My assignment is to get rid of the carriage returns in the record set. I tried to use Trim function, however, the carriage returns exist in the middle of the record set, they do not only exist in the end of the record set. Can anyone help?
    Thanks!

    ... Or [REGEXP_REPLACE|http://www.oracle.com/pls/xe102/lookup?id=SQLRF06302] if you are on latest version (for complex replaces).
    -Arun

  • Run quickSearch with the carriage-return key

    Hi to all,
    I am using JDeveloper 10.1.2 and developing an application using ADF Business Components and JheadStart 10.1.2.
    JHS built the application and i need to do some post-generation.
    I need to run quickSearch with the carriage-return key.
    To do that, i replace
    <messageTextInput id="searchText" name="searchText" text="${searchBean.searchText}" rows="1" maximumLength="255" columns="60"/>
    by
    <messageTextInput id="searchText" name="searchText" text="${searchBean.searchText}" rows="1" maximumLength="255" columns="60">
    <enterClientAction>
    <fireAction event="quickSearch"/>
    </enterClientAction>
    </messageTextInput>
    The problem is the carriage-return action go systematically to the BackButtonErrorPage.
    How can i solve this problem ?
    Is it a good solution ?
    Sorry, if my english is not very well.
    Thanks
    Laurent

    Thank you Martijn for your help
    I tried your solution :
    In UIX :
    <messageTextInput id="searchText" onKeyDown="if(window.event.keyCode==13) doSearch(event,'goSearchButton');" name="searchText" text="${searchBean.searchText}" promptAndAccessKey="&amp; de recherche" rows="1" maximumLength="255" columns="60"/>
    <button id="goSearchButton" name="goSearchButton" onClick="doDataEvent('quickSearch','quickSearch', 'true' );" text="${nls.GO}"/>
    In javascript :
    function doSearch(e, buttonName) {
    buttonToClick = document.getElementById(buttonName);
    buttonToClick.click();
    The behaviour is the same, i often go to the BackButtonErrorPage but not systematically.
    But if i use the search button, i never go to the BackButtonErrorPage.
    I don’t undersand,
    Anybody has an idea ?
    Regards
    Laurent

  • I am wondering if it is possible to add the greek language in the spelling tool

    I am wondering if it is possible to add the greek language in the spelling tool of iPages
    Thank you in advance

    Mac OS X uses the OpenOffice spell modules, so download the spell dic from OO site, you will get a file of the type name.oxt, change extension to .zip, confirm, then move the Library/spelling the two files named .aff and .dic. Then, go to Pages or any other cocoa app (TextEdit etc.) and choose Greek as spell language. See attachment.

  • Need to add a carriage return in Paragraph styles

    Hi. I am in a muddle. I have a large amount of data from an xml source. I need to quickly add carriage returns appropriately throughout it so that the paragraph styles can be differentiated.I am using tags manually mapped to styles to do this.
    In order to carriage returns am I right in thinking that I can add a GREP style to each para style, and that it will sense the end of the para through the end marker position of each tag? If this is so, what would the GREP expressionlook like to that I can automate locating the end of a tag/para style so that I can add ~b to it?
    Gratefully!

    Hi @chantal_diva arts,
    It seems to be difficult, because you have much more invinsible character than only the xml markers in your document.
    I think one good way could be @obi-wan Kenobis way.
    Perhaps you can upload an example idml on a file hoster of your choise (e.g. xup.in).
    Regardless, you can try the following:
    1. text search:
    <FEFF>
    replace with:
    2. grep search:
    (?<=\b##)(.)
    replace with:
    \r$1
    3. clean document
    grep search:
    #+
    replace with:
    (nothing)  an empty replace field
    Have fun

  • IDoc output is not showing blank fields before the carriage return

    When we produce the Material Master IDoc (MATMAS), we send it to a ascii file, to a file port.  That works fine when we execute BD10 to produce the IDoc and the file.  But, the 3rd party mapping software wants to see every field, even if blank, in each segment it is fed.  So, let's say the E1MARCM segment is 750 chars, when you add up all the field lengths in the structure, but the last 5 fields are blank.  SAP does not include those trailing blanks at the end of the segment in the file.  It just puts a carriage return.  How can we configure it to output the trailing blanks?

    Hi Mark Mathison 
    In IDoc ....if no value is passed in to that field then, the field wonu2019t be populated in Doc....
    There is no chance of getting blank field in IDocs...
    Ramesh

  • Can the carriage return within a variant be read as the terminatio​n condition for VISA READ?

    Hi guys, I am trying to read a variant data using VISA READ. The VISA READ is set to terminate reading when it sees a carriage return.
    Is there a chance that for the CR "encapsulated" within the variant be read by the VISA READ, and cause it to terminate?
    Cheers!
    Solved!
    Go to Solution.

    Since with the Flatten to String you are basically sending a binary representation of the data, you are going to have problems if you have the termination character enabled since byte 13 would be part of perfectly valid data and not just represent the end of a transmission.
    What you might want to do is disable the termination character.  Of course now you don't know how many bytes to read.  So prepend your message to write with the number of bytes that are a part of the message (string length).  You may want to use two bytes, (one byte would only give you messages up to 255 characters in length.)
    Now on your reading end, read 2 bytes, convert them to a number and feed that number in the next VISA read which will then read that many bytes.
    For examples, look at the TCP/IP read write examples in the example finder and you'll see how they send a message with 4 bytes to tell how much data makes up the rest of the message.

Maybe you are looking for