Result of text SQL with Chr (10) (line break) NOT carried over to the HTP. P Javascript Mailto

[4.2.1.00.08 Express application.]

Hello, Super gurus!

Maybe I am still not able to wrap my head around quotes and concatenations, as in this post Re: Mailto PL/SQL block with window.location.href, I would like to ask for your help again.

I can't get a NEW LINE character to work in my htp.p & javascript.

Full article: it is an extension of what I worked on, as shown in the link above.  This time, I called a request similar, as shown below, of my 'after Submit PL/SQL anonymous block ' process:

DECLARE
TYPE emp_aat IS TABLE OF THE emp % ROWTYPE;
l_employees emp_aat;
v_result varchar2 (5000): = ";
BEGIN
SELECT *.
LOOSE COLLECTION l_employees
WCP
ORDER BY ename;

BECAUSE me in 1... l_employees. COUNTY
LOOP
v_result: = v_result | l_employees (i) .ename | ' -  '
|| ' Job: ' | l_employees (i) .job | ' ';
|| Chr (10);
END LOOP;
Dbms_output.put_line (v_result);
END;

The above works well with the Chr (10), where each outcome starts on a new line:

ADAMS - job: CLERK

ALLEN - job: SALESMAN

BLAKE - job: MANAGER

CLARK - job: MANAGER

Further down on my PL/SQL block process, the problem I have is that I can not get the v_result is displayed as you like, with the new line:

HTP.p ("< body > '");

HTP.p ("< script type =" text/javascript "> '");

HTP.p ('window.location.href = "mailto:" |) v_logged_on_user_email | ';'

||'? "subject = salary increase Request"

|' & cc ='

|| v_hr_email

||';'

|' & body = '
||' \n "

||' Two hundred per cent increase for these people to chance! "

||' \r\n "

|| v_result

||'";'

);

HTP.p ("< /script >" ");

HTP.p ("< /body >" ");

As a matter of fact, these '\n' and '\r\n' above do seem to not work at all.  And the body of my email has just 1 big piece:

ADAMS - job: COMMITTED ALLEN - job: SALESMAN BLAKE - job: MANAGER CLARK - job: MANAGER

Issues related to the:

-Should I replace "Chr (10)" in my SQL query with something so that javascript would recognize?

-How is "\n" does not work as expected?

Please let me know if I did something wrong with the foregoing, and that can be done to correct it.

Thank you very much!

It is a HTML problem, you will get best responses from stackoverflow.

Try % OA

HTML - mailto link several lines of body - Stack Overflow

Tags: Database

Similar Questions

  • CFFILE - reading text file and maintenance of line breaks

    I am using cffile to read a text document, then add then display the content of the text document in a file .xml for an atom feed. Everything works fine, but it seems that cffile is stripping on the line breaks in the original file so that the contents of the variable which is save has more no line breaks. Is there an attribute that I'm missing that will control this behavior or I have to go about it in different ways. Thanks in advance for any idea on this issue.

    Why do you say that line breaks are removed?

    If you just say that because when you look at the results in your browser.  Recall that the HTML standard ignores all the line breaks and most other white space.  A quick overview of the source will tell you if the line breaks are there or not.  Using the HTML code

    ...
    Tags is the right way to tell a browser not not to ignore white space in the source.

    But it is possible that somewhere along the process of conversion of text file to XML data line breaks are stripped.  But then, we would need to see significant process pieces for a chance to help you.

  • GREP: How to replace a paragraph with a manual line break break?

    Hello.

    I want to replace a few paragraph breaks (Enter) with manual line breaks (SHIFT + ENTER).

    How do I do that?

    Any help would be appreciated.

    GREP codes for all functions and special characters can be found in the help: help InDesign | Find/replace

    In this case, you do not want to change

    \r

    TO

    \n

    Be aware that this will stick together, paragraphs with all the consequences for its paragraph styles. I rarely do this (and then only unformatted text!) that I don't know yet if it will apply the above the following paragraph paragraph style, or vice versa.

  • BlackBerry Smartphones SMS text - how to get a line break?

    Because unfortunately, the Enter key is programmed to send text, how can I get a line break in the drafting of a text message?

    Green-field wrote:

    Because unfortunately, the Enter key is programmed to send text, how can I get a line break in the drafting of a text message?

    SHIFT-ENTER key

  • Line breaks not succeeded since flash to ASP.

    Hello

    I came up with a very annoying problem, and I need it fixed ASAP.

    The problem is as follows:

    I have a form in flash that contains a number of areas. One of these is an input field in order to capture impressions of the user on a given topic. Needless to say that this impression may contain paragrafs and line breaks. I use flash 7 publish settings and passing the values of fields via LoadVars. The problem seems to be that no line breaks is passed to ASP. All special characters are passed correctly, the HTML code is encoded in UTF-8 format so that Portuguese characters are correctly decoded, but without line break is shown. I need a quick fix to solve this problem the line breaks.

    Can someone give me a quick hand on it?

    THX

    THX kglad,

    Your solution is very simple... so much so, I happened to create a solution on a much more complicated way... I found myself escaping chain, detect where the 0% D was found and replaced it with
    . A way that is much harder to get the same result... Opportunities future im going to use your solution, which is a much simpler way and does not require the number of lines that I had to create for the same purpose of coding.

    Thx to new m8

  • V9 Acrobat JavaScript Alert Box - possible to add space or line break after each element of the array?

    I have a Document level Javascript used to identify empty mandatory fields and fires on shares of paper, print and save. The script identifies the required fields empty, counties and outputs of an alert box indicating the number of required fields empty and lists the name of the ToolTip fields. The script identifies the required fields with an asterisk at the end of each balloon.

    Is my question possible to add a space or a line break after the decimal point for each item?

    Here is a picture of the exit where the items listed are all grouped together.

    Alert box array items need space or line break.jpg

    Here is the code:

    function validateFields()

    {

    a counter for the number of empty fields

    var = 0 flg

    count all the fields of the form

    var n = this.numFields

    create a table to contain the names of the required fields

    If they are determined to be empty

    fArr var = new Array();

    Browse all fields and look for ones that are required

    all fields that have a ' *' in their ToolTip are required

    for (var i = 0; i < n; i ++) {}

    var fn = this.getNthFieldName (i);

    var f = this.getField (fn);

    ToolTip is the property of 'userName' of the fields\;

    TT = f.userName var

    test the ' *';

    If (TT. IndexOf('*')

    ! =-1 & & f.value == f.defaultValue) {}

    increment the counter of empty fields;

    FLG ++;

    Add the fields username (ToolTip) to the list of the names of fields empty.

    fArr [fArr.length] = tt;

    }

    }

    now display a message if there are blank fields

    if(FLG>0) {}

    App.Alert ("there are '+ flg + areas that require a value\n\n' + fArr, 3")

    }

    else {}

    This.Print ();

    }

    }

    The required property is very easy to use. It's just a Boolean (true/false) value, then you can use it like this in your code. Instead of this line:

    If (tt.indexOf('*')! =-1 & f.value == f.defaultValue) {}

    Use this:

    If (f.required == true & f.value == f.defaultValue) {}

  • Text field increment number of legend - does not correctly load after the backup

    I am trying to create a field of dynamic legend who will be essential are text fields look like a list.  Initially, I searched on how to do this.  I finally found a way to do it, and it is simply to count the number of instances of the text field I and set the value of the legend:

    var curObject = prospectus.page1.step1.ObjectivesSubform.Objectives.instanceManager.count;
    prospectus. Page1.Step1.ObjectivesSubform.objectives [curObject-1]. Objective.Caption.Value text.value the Group concat (curObject, ":");

    And that helps my form works very well and the numbers to load fine in the form.  The problem I'm having is that after I save the form and reload, the figures date back to 1 for each text field.  Someone has an idea?

    * To test what I see, go to 'Objectives' and click Add target to create at least 2 additional text fields (so that you have at least 3 overall).  Save the form, and note that the numbers went from 1,2,3 to 1,1,3-triethoxyheptane.  It will be the same if you create any amount.  If you create 5 more it will go 1,1,1,1,5.  I'm puzzled.

    I think that it is related to the initialization of the form sub and how instance manager interprets the subshape County. The "count" on the instanceManager property is the current number of instances of the secondary form. When you add instances of the form in increments of 'count' and she is exposed as a sequential number incremented. However, after economy-close-open the form, the County is irrelevant until you add another instance.

    Try the 'instanceIndex' property and assigning the legend as follows:

    prospectus. Page1.Step1.ObjectivesSubform.objectives.objective::Initialize - (JavaScript, client)

    var CNT = Objectives.instanceIndex + 1;
    xfa.resolveNode("Objectives.Objective.caption.value.#text").value = cnt + ":";

    Steve

    PLEASE NOTE ON THIS FORM, I HAVE NOT HAD A CHANCE TO WATCH, THERE ARE PROBLEMS.

  • Firefox crashes on startup with a single user, but not another user on the same computer

    Firefox crashes at the start.
    UniBlue Registry Booster scan and repair has not corrected the problem.

    I'm happy to have helped.

  • I have problem with CoreAudio. I can not find help in the web...

    When I use built in Audio, Logic Pro X has delay when I push the stop button. When I stop, Logic audio game about 800 ms still... But the "play" button does not delay...

    Change the setting from automatic to 8 processing Threads or less

  • Drive (USB key) cleaned using the command line. Not able to use the USB.

    I had downloaded Chrome OS vanilla http://chromeos.hexxeh.net/ and writes to a 8 GB USB key. After that I checked, I tried to remove it. I plugged my USB and it asked me to format it. There was only one option of 1 GB. After formatting, I just had 1 GB on my USB key. Then, I tried http://erlern.wordpress.com/2010/04/02/repair-unallocated-space-from-usb-flash-drive/ and followed the procedure in the comments.

    Step 1: Start-> CommandPrompt->
    Step 2: Type diskpart-> Enter
    Step 3: Type list disk-> Enter
    Note: (find the allocated number of the disk)
    Step 4: Type select disk X-> Enter
    Note: (If X is the number of your drive)
    Step 5: Type clean-> Enter

    After that when I plug my camera he asks me to format the drive. It shows unknown capacity. After clicking on start it says Windows could not complete the format. Then when I close it, it says Windows can not format H. check that the drive and the drive are connected correctly, make sure that the disc is not dead, and then try again. For more information, search the help of read-only files and how to change them. Now I can't use it and it has no memory. Please help me.

    I got it. I HAD to PLUG IN ANOTHER PORT USB (IT DOESN'T WORK ON OTHER TWO) AND USE the TOOL in http://erlern.wordpress.com/2010/04/02/repair-unallocated-space-from-usb-flash-drive/ (in the tool, that the device will not be detected in the tool in the other 2 ports) Thank YOU

  • Line breaks ignored when using text HTML CSS and embedded fonts

    Someone at - it find it.
    When you use a style sheet with html text in a dynamic textfield with embedded fonts line breaks are ignored. It's as if TextField.condenseWhite is set to true. Essentially the < p > tags are treated as a < br / > tag.

    If I do not incorporate fonts, it works fine. Another weird thing is that if I add an empty paragraph < p > < / p > between the first two paragraphs it makes any following paragraph behave correctly. for example

    < p > first text paragraph here < /p >
    < p > second text paragraph here < /p >
    < p > third text of paragraph here < /p >

    poster as if there are < br / > between each of them.

    But

    < p > first text paragraph here < /p >
    < p > < / p >
    < p > second text paragraph here < /p >
    < p > third text of paragraph here < /p >

    behaves correctly even for the third paragraph.

    Here is the code that I work with (by using XML as I am filling dynamic textfield to XML)

    any help much appreciated

    UPDATE:
    After reading http://www.kirupa.com/forum/showthread.php?t=307326
    I tried the same experiment using a TF designed in the IDE, the results for each, although the TextFields are essentially the same are totally different.

    Updated CODE accordingly - just need TF on stage, called "ideTextField" with the font "Arial".



    Ok
    I gave up to play with style sheets, try display: block, inline, different ways to format the XML data, in play with XML.ignoreWhiteSpace and XML.prettyPrinting etc.

    I went down the road of encodeURI, using a regular expression to remove all tabs, line breaks and the transport returns. This now gives consistent results for all situations, even incorporated and any fonts embedded.

    for example
    _TEXT:string = TEXT FROM XML, HTML TEXT etc.

    var st:String = encodeURI (_text);

    var model: RegExp = /(%09) + | (0 %) + | (0 % D) + / g ;

    St = st.replace (model, "");
    St = decodeURI (st);

    YOUTEXTFIELD.htmlText = m;

    The

    Tags always behave like a
    Tag, but you can add an extra
    to simulate a paragraph.

    Here is the example with the updates,

    Hope this helps someone

  • Automatically convert soft line breaks in the text box to hard breaks

    I have the design of textbooks and convert to ePub recomposable, broke up. These ePub files get formatted then can be used interchangeably on the printed text. A book that I am currently in conversion is a literature book where there are lines of text with the overall line numbers so that teachers can quickly refer to a specific section of the text.

    All the line breaks in the ID file are defined just by the edge of the text box. So the text box change sizes, all line breaks would also change. Isn't a problem until you need to keep these online breeze in recomposable text and add up the numbers in.


    What I'm looking for is a way to insert automatically the line breaks in these LONG sections of text in the right places. Does anyone have any ideas on how to do that?

    Thank you!

    Select a text box and run this script. He puts a soft return at the end of each line that doesn't have a carriage return. For more information on the installation and use of this script see http://indesignsecrets.com/how-to-install-a-script-in-indesign-that-you-found-in-a-forum-o r-blog - post.php .

    Written by Skemicle

    If (parseFloat (app.version)<>

    main();

    on the other

    app.doScript (principal, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "add end of line returns");

    main() {} function

    lines of the var = app.selection [0].parentStory.lines;

    for (i = 0; i<>

    If (rows [i] .characters [-1] .silence! = "\r") {}

    lines [i] .characters [-1] .silence = "\n";

    }

    }

    }

  • Force a line break in the text of button?

    I'm sure I asked this before a few months ago, but what worked then is not working now.

    Dreamweaver CS 6: I have a menu bar button that contains text that needs two lines. The default line break is awkward. I want to break the line a word before where the default it breaks.

    Now, a few months ago, with a taskbar button previous menus that have had the same problem, I was told to enter the control + return in the window code and divide the text exactly where I wanted. (Note: I'm on a Mac, I don't speak a command.) I mean the control key.)

    What to do with this button and it forces a line break where I want in the code window, but the design window is not follow suit.

    So. How can I force a line break in the text of the button in design mode? I'm sure it's something simple. But what I thought I knew have apparently isn't what I want.

    How can I force a line break in the text of the button in design mode?

    Have you tried Shift + Enter?

    It works in Windows, so it might work on mac as well.

  • Add up the scores in the text box with a variable

    Hello

    I create a quiz form that does not use the quiz slides (5,5) standard Adobe Captivate. I get the learner to mark themselves and enter the score into a text entry in a TextAreaWithVariable area. The scores are then displayed on the last page in the corresponding text box TextAreaWithVariable.

    I wish that Captivate to add up the scores on the last page. I've read somewhere that you use Actions in advance, so when the student enters the page it triggers the calculation by using the action of the Expression. The problem is that when you configure the action, it does not recognize the three TextAreaWithVariables on the page. They are all appointed, but the action does not pick up them.

    Could you get it someone please let me know where I am going wrong here.

    Thank you very much

    Nick

    Hi Nick,

    I've been blogging on the use of the text with Variables by Jim box:

    Extended features

    In the article referenced to in this post, you will find explanations in detail the advanced actions that I used.

    But I'm a little afraid that I need additional information:

    • you have a text box, with its variable partner on one page and this variable gets its value (20) by the user
    • How many of these slides you?
    • but then, you talk of multiple partitions that you want to summarize in a total variable to be displayed on another TextArea widget to the last slide.

    How you trigger the advanced actions to calculate the sum? I suggest that use you the action on enter each slide after the first question slide to temporary sum. Try to explain:

    1. Score of the first slide in question entered by the user and stored in the variable v_quest1
    2. Entering the second question slide create this advanced standard action triggered by action on enter on this slide
      • Expression v_sum = v_sum + v_quest1
      • Continue
    3. Entering the third question slide create a similar action with the score stored in v_quest2
      • Expression v_sum = v_sum + v_quest2
      • Continue
    4. When you enter the slide of score you the last of this breakthrough of similar actions to trigger and the final result will be in v_sum

    If you do not need to keep the individual from each question scores, you can even re - use only a single variable v_quest that would be associated with all widgets except on the slide to score and you can reuse the action advanced on each slide without having to edit.

    Lilybiri

  • Problem with XML and different line break styles

    I'm working on a project that is being developed by some developers Flash Builder 4.6 running in Windows and some developers Flash Builder 4.6 running under OSX. We have difficulties due to the difference of newlines between the two environments. In an .as file with line breaks in style UNIX is similar to the following code:

    var XML = < document >

    < item >

    < / item >

    < / document >;

    xml.appendChild (SomeClass.getXML ());

    SomeClass.getXML () is located in a file .as using type line breaks Windows and is similar to the following:

    public function getXML (): XML

    {

    var moreXML:XML = < anotherElement >

    < childElement >

    < / childElement >

    < / anotherElement >;

    Return moreXML;

    }

    When the XML object is serialized and written to a file on a Windows computer, it looks like this:

    < document >

    < item >

    < / item >

    < anotherElement >

    < childElement >

    < / childElement >

    < / anotherElement > < / document >

    Line for all outside anotherElement breaks are of the form \r\n. Line breaks it contains are of the form \r\r\n, causing thus the empty lines. I'm guessing that the odd line breaks are the cause of the strange setting indented, as well. None of these problems occur when XML is added to the xml file .as that employees style UNIX line breaks.

    Is it possible to force the Flash Builder to use UNIX on Windows style line breaks? Otherwise, there are relatively specific to this problem solutions? Thank you!

    Section clarified

    I found a setting to force a certain style of line breaks: window-> Preferences-> General-> Workspace (delimiter line of file new text). The XML serializes as planned today.

Maybe you are looking for