Mailto PL/SQL block with window.location.href

Hello, everyone!

I was pulling on my hair for the last two days and would like to ask your help, please.  So far, for the life of me, I can't get the value of a variable to pass into the body of the email.

I have a main page of the APEX (3).  By clicking on the button Add will call a JavaScript to open a modal window (page 260).  Page 260, based on values of selected drop-down list, when the user clicks a button Save to save this file, I would call a MAILTO to open an Outlook email with some information in the subject line and body.

On page 260, I incorporate this new addition in an existing branch on submit: after 'treatment' (for PL/SQL procedure):

DECLARE

v_emp_count varchar (20);

BEGIN

SELECT COUNT (*)

IN v_emp_count

EMP;

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

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

HTP.p ("var obj = new Object();'");

HTP.p ("obj.saved =" Y";");)

HTP.p ('window.returnValue = obj ;');)

HTP.p ('window.location.href = "mailto:[email protected]? subject = good day. & body = Count is ' + v_emp_count +' ;'); )

HTP.p('window.) Close (this);') ;

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

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

END;

The code above gives me now "error processing creates a branch.  ORA-06502: PL/SQL: digital or value error: character conversion error number. »


When I got an alert in there, the alert line seems to work very well- htp.p (' alert ("v_emp_count is ' | v_emp_count |' number.)) ") ;") ;


260 page contains all the data I want to include in the body of the email.  My plan is just to get a value (from the SELECT statement) to present and get the workflow first working.


I could get the Outlook e-mail window opens with this line, but I would like to get a value for the SELECT statement is displayed.

HTP.p ('window.location.href = "mailto:[email protected]? subject = good day. & body = project is & P260_INSP_STATUS_IND. ' ;'); )


I tried different ways, trying to get the SELECT variable appears in the body of the email.  No luck so far.  :-(

Help, please!

Thank you!!!

Are you having problems with quotes and concatenation? Try this

HTP.p ('window.location.href = "mailto:[email protected]?") subject = good day. & Body = Count is ' | v_emp_count: ' "(;');"

Tags: Database

Similar Questions

  • Window.Location.href = "mailto:...» "does not work in the IOS, but this is the case in Android.

    Hello, I have a strange problem, I can not understand.  I created an application in phonegap for IOS and Android build with a button that uses javascript to open a new email.  He worked in an earlier version and still works in Android.  For some reason any, that he stopped working in the IOS on time phonegap build started showing the message to support a new version of phonegap.  At first, I thought it would be something that I did I have re-built an older version that worked before.  Now, it no longer works, so I don't think it's my code.  I played a bit with Add/Remove plugins of my config.xml file but nothing works.  Here is a javascript code snippet:

    body var = "Please provide a quote for" parts "pieces of" ++ metal + "" shapeText + ', ' + size + '. ';

    Window.Location.href =mailto:[email protected]?subject=Request for quote & body =' + body;

    Regular connections such as the following WILL not work:
    "< a href ="mailto:[email protected]?subject=Contact request & body = please contact me as soon as possible. "data-rel ="external">[email protected]< /a >

    I tried to do the hokey pokey with plugins, but none of them seem to be the source of the problem (out them, setting them)

    I asked this question in the forum phonegap and dismissed without reason.  I have since found some messages speaking of the CLI 6.3 upgrade and updates from my config.xml file with:

    < name of option = "phonegap-version" value = "cli - 5.2.0" / >

    This corrects the problem, but I would like to know how to operate in the latest version of CLI.

    No idea how to get it working again?

    Ron

    RonSSA . for what it's worth, you can try adding:

    "href =" * "/ >

    This helped me to solve the problems of mailto on iOS.

  • window.location.href JavaScript stopped working on FF 17.0.1

    I used window.location.href to navigate through the pages of my application. Suddenly it no longer works with the upgrade to v 17.0.1

    Still works in v16... but above all the business users upgraded to v17, and now it's a big proglem

    WHAT SHOULD DO?

    solved. It was question of jquery. don't know how to delete the topic

  • rental var = window.location.href;

    In fact, I am trying to find if a particular word exist in URL and try with the code below in a .cfm file.

    It works fine in the html page but does not not in coldfusion. Can someone help me how to solve this problem

    < script type = "text/javascript" >

    rental var = window.location.href;
    If (location .indexOf ("is") > - 1).
    {
    do things
    }
    on the other
    {
    do things
    }
    < /script >

    From what I understand, this isn't a question of ColdFusion, so I don't know why you have two result for coldfusion vs html. Two things:

    1. I had problems with some browsers using window.location and found more reliable document.location.
    2. I ran into descrepancies with some browsers (IE) between document.location and document.location.href. To work around this problem, I use logic like this:

    This.Settings.Self = document. Rental;

    ...

    If (this.settings.self.href & (typeof this.settings.self.href = 'string')) {}

    Set the property of type string (IE fix)

    This.Settings.Self = this.settings.self.href;

    }

    (the above is an excerpt from a plug-in I wrote-"this.settings" must be adjusted to your needs)

    Hope these help one or both.

  • Connection to a SQL database with Windows authentication in a workflow?

    So far, I had a lot of chance to connect to and reading SQL DBS of workflows using SQL authentication (MS SQL). What I'm trying to do now is to connect to the databases same by using Windows authentication and I'm coming up with nothing.

    Someone at - it examples of correct connection URL and or the configuration tips to make this work? Can the vCO to connect using JDBC and Windows Auth at all in a workflow?

    Thank you!

    Colin J.

    Certainly, the best thing to do is to use the URL JDBC workflow Builder.

    It may take a little trial and error:

    If your stand-alone SQL Server, is not in the field, use the server for the Domain domain name.

    Field, use the domain for the domain domain

    If you have an instance, specify it, otherwise leave this field blank.

  • problem installing SQL server with windows vista

    SQL server system configuration checker cannot be executed due to wmi configuration error:2147749907(0x80041013)

    I get this error when trying to install sql express 2005 on windows vista home and professional. Please let me know what is the cause of this error and the solution.very urgent please. Thanks in advance

    Hello Sisi reddi, welcome.

    You can try a solution that worked before on S2k3.  Try this on affected systems:

    1. click on START
    2 type "notepad" (without the quotes) and press enter
    3 copy and paste the following text in Notepad:

    LETTER
    CD %windir%\system32\wbem
    Mofcomp.exe cimwin32.mof
    Regsvr32 /s wbemupgd.dll
    Regsvr32 /s wbemsvc.dll
    Wmiprvse/regserver

    4. click on file > save as
    5. change the drop-down list (file type) to "all files".
    6. name the file sqlfix.bat, and then save it to your desktop
    7. from there, right-click on the file and choose "Run as Administrator". If it works that way, you can also open it WITHOUT choosing run as administrator and see what happens.

    8. now try to install SQL 2 k 5

    Let us know,

    Thank you!

  • Spam blocking: setting up a list of "allowed" senders of e-mail with Windows Live Mail?

    I have on the execution of ideas to put in place of the blocked domains and keywords blocked with Windows Live Mail.  These work well, but the spammers are constantly thinking up new things that I've not yet blocked.  So, I would like to put up a 'allowed' list of email addresses that I want to go to my box and everything else go to the junk e-mail folder.  I have several thousand "authorized" addresses, in a worksheet.  Someone knows a way to do this?

    One thing is certain, it's actually pretty easy.

    1. Click on the arrow under "Junk" in the toolbar, and then click Security Options:
          
    2. Use the 'Safe list' option only
          
    3. Add the people that you trust to the allow list in the top tab.

      Tip: you can automatically add your address book, so that anyone in your contacts is automatically secure without having to add them manually.  You can also automatically add anyone you send outgoing messages, so that their response is considered safe when they respond back.

  • First execution of pl/sql block is slow.

    Hello

    I've implemented TimesTen to improve performance of an Oracle pl/sql block.

    To do this, I created some cachegroups in TimesTen for caching oracle data.

    After everything is done on TimesTen, when we execute the pl/sql block on TimesTen, I observed that it took 35 seconds for the first run time on Timesten (compared with 48 seconds on Oracle).  The next run of the same pl/sql block with the same parameters take only 6 seconds. I want to achieve the same flow rate (6 sec) when the pl/sql block is executed for the first time. Can you please suggest what exactly I should look into.

    Thank you

    Amit

    Ye, it's a phenomenon known as I mentioned, but the 'hit' on the first run is usually not nearly this big. However, Windows as a platform is suffering more than most from this phenomenon and also Windows supports only not MemoryLock = 4, which further compounds the issue.

    Would you happen to have an available Linux system where you could test this with MemoryLock = 4, just so we can see what the difference between Linux and Windows? I think it would be a very useful thing to study to quantify how much this is due to Windows itself.

    A 'workaround' could be just application make a 'fake' execution of the PL/SQL procedure, immediately after I start and then all 'real' subsequent executions will be fast.

    Chris

  • RETURN in IF clause... ANOTHER Condition in a PL/SQL block

    Hello

    Could you please explain to me the importance of a RETURN Clause in CASE... ANOTHER Condition in a PL/SQL block with
    an example.

    Concerning
    Nakul.V

    Hello

    Allowed RETURN clause out the block. For more information, you can see [using a RETURN statement | http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/subprograms.htm#sthref1683]

    SET SERVEROUTPUT ON
    BEGIN
        IF 1 = 1 THEN
            dbms_output.put_line('Before return');
            RETURN;
        ELSE
            dbms_output.put_line('Else');
        END IF;
        dbms_output.put_line('After if');
    END;
    /
    
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    Connected as hr
    
    SQL>
    SQL> BEGIN
      2      IF 1 = 1 THEN
      3          dbms_output.put_line('Before return');
      4          RETURN;
      5      ELSE
      6          dbms_output.put_line('Else');
      7      END IF;
      8      dbms_output.put_line('After if');
      9  END;
     10  /
    
    Before return
    
    PL/SQL procedure successfully completed
    
    SQL> 
    

    Kind regards

    Published by: Walter Fernández on December 12, 2008 09:41 - added output

    Published by: Walter Fernández on December 12, 2008 09:43 - Add URL...

  • Adobe Acrobat is NOT COMPATIBLE with Windows Vista... it blocks any browser or operating system when I try to open any PDF... y at - it a patch?

    Adobe Acrobat is NOT COMPATIBLE with Windows Vista... it blocks any browser or operating system when I try to download or open any file PDF... y at - it a patch?

    When I try to open a PDF file in IE 7 or Firefox 3.6, or just on the desktop, I get a sign that says:

    "Program Compatibility Wizard".

    "This program has known compatibility issues - check online if the solutions are available on the Microsoft Web site. If we find solutions, Windows automatically displays a Web site that lists the steps, you can take. »

    "Program: . Acrobat Reader 7. Editor: "Adobe,location: C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe.

    "Acrobat Reader 7 has a compatibility issue with this version of Windows. For an update compatible with this version of windows, contact Adobe. »

    "Search for solutions online - Run program - Cancel . "

    If I click on one of the 3 buttons listed above, the browser, it blocks or breaks down the entire operating system.

    Does anyone know of a patch for this... Adobe, what I find, has updated for Acrobat Reader, but they don't say if this is a patch for this problem of Vista incompatibility.

    I searched on the basis of knowledge of Microsoft and this forum and I can't find anything definitive on this question.

    I can not even download a PDF file, and still less open and looking at its content.

    Known fixes?

    Thank you

    NuMetro

    Adobe Acrobat is NOT COMPATIBLE with Windows Vista... it blocks any browser or operating system when I try to download or open any file PDF... y at - it a patch?

    When I try to open a PDF file in IE 7 or Firefox 3.6, or just on the desktop, I get a sign that says:

    "Program Compatibility Wizard".

    "This program has known compatibility issues - check online if the solutions are available on the Microsoft Web site. If we find solutions, Windows automatically displays a Web site that lists the steps, you can take. »

    "Program: . Acrobat Reader 7. Editor: "Adobe,location: C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe.

    "Acrobat Reader 7 has a compatibility issue with this version of Windows. For an update compatible with this version of windows, contact Adobe. »

    "Search for solutions online - Run program - Cancel . "

    If I click on one of the 3 buttons listed above, the browser, it blocks or breaks down the entire operating system.

    Does anyone know of a patch for this... Adobe, what I find, has updated for Acrobat Reader, but they don't say if this is a patch for this problem of Vista incompatibility.

    I searched on the basis of knowledge of Microsoft and this forum and I can't find anything definitive on this question.

    I can not even download a PDF file, and still less open and looking at its content.

    Known fixes?

    Thank you

    NuMetro

    FAQ Adobe "Acrobat 7.0 and earlier versions do not support Windows Vista. Adobe does not plan to release updates to Acrobat 7.0 and earlier for Windows Vista compatibility. «You'll need to level of Acrobat 9 (or later) to ensure full compatibility with Vista and Win 7.»
  • I can't use a website should I use with Firefox 5.0. So, I need to uninstall and go back to 3.5 or 3.6. Please notify. Also, my control panel blocks from Windows Explorer a PMP. That's why I use Firefox instead. Thanks for any help!

    I can't use a website should I use with Firefox 5.0. So, I need to uninstall and go back to 3.5 or 3.6. Please notify. Also, my control panel blocks from Windows Explorer a PMP. That's why I use Firefox instead. Thanks for any help!

    I thought it would be FAFSA is causing your problem.

    Install Portable Firefox 3.6.x on your hard drive to a Web site. This will not affect any of your current Firefox installation.

    http://PortableApps.com/apps/Internet/firefox_portable/localization#legacy36

  • How to connect 2 PC with CPL blocks on windows?

    How to connect 2 PC with CPL blocks on windows?

    original title: CPL problem
    Hello
    Please select your language from the drop-down menu above to post your question in the language of your choice. The forum in which you've posted is for English only. If you can't find your language above, support for additional international sites options are by following the link below:
  • Windows Update error "windows update location must be replaced with the default windows location."

    Original title: Failed to automatically / thru fixit updated windows installation (another) indicates both failed 1 of 5. It says windows update location must be replaced with the default windows location

    XP86 running. Recently had installed the additional memory. Microsoft Update icon never goes away - seems like if 1 of 5 updates usually install on a group. Keep trying to install updates (even those) again and again. Sometimes we will not install and then moved the next time, he's trying to install the same updates, another a group. Worked through say fixit and details window update location must be changed to windows default = - but did not say how.

     

    Hello

    Have you tried Microsoft Fix - it?

    See the following article:

     

    Important: this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    http://support.Microsoft.com/kb/322756/

     

    You cannot install some programs or updates

  • I have Windows XP. I am trying to download Microsoft Streets &amp; Trips 2009 / with GPS Locator.

    I have Windows XP. I am trying to download Microsoft Streets & Trips 2009 / with GPS Locator. A notice appears stating (format not supported). Help, please.

    Hello

    Check with the streets and the support of the TRIPS Agreement.

    Streets & Trips
    http://www.Microsoft.com/streets/en-us/default.aspxp

    Streets & Trips - help and Support
    http://www.Microsoft.com/streets/en-us/support-and-training.aspx

    Streets and travel community
    http://www.Microsoft.com/streets/en-us/community-and-news.aspx

    Streets and travel Forum
    http://social.Microsoft.com/forums/en-us/streetsandtrips/threads

    Support for MapPoint, streets & trips and Highway
    http://support.Microsoft.com/ph/851

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Can you please tell me where to locate the Windows Explorer with Windows Vista?

    Can you please tell me where to locate the Windows Explorer with Windows Vista?

    Thank you for your sincere help.

    Start | All programs | Accessories | Windows Explorer. Or, just use the Windows key and the E key.

Maybe you are looking for

  • plugin. Disabled = false; does not work in firefox 30

    [CC["@Mozilla.org/plugin/Host;1"] I used to get plugins now I try to disable all plugin with plugin.disable = false that work very well in < FF29 but does not work in FF 29 & 30.

  • Qosmio G50 will not complete the installation of Windows 7 64 bit

    Hello world! I recently wanted to updated my Qosmio G50 - 12f 32-bit from vista to 7 ultimate 64-bit. I did a clean install: formatted the c partition. Everything seemed to work fine until the screen "Setup is preparing your computer for first use. A

  • Unable to activate Windows 7 with upgrade CD (Clean Install)

    Hi Techies,I bought a laptop eligible for the upgrade to Windows 7. I had received the upgrade DVD and has been upgraded successfully. But after a year now because of the corruption of some files I had to reinstall Windows 7, after which it is said t

  • scan to computer function more hp officejet pro 8600 keeps disabling

    For some reason, the analysis of the it function to our laptops HP keeps turning off. I reinstalled the software a couple of times to remedy, but it keeps occurring. Even with a direct analysis of the printer... How can I solve this problem, or someo

  • "fine woodworking" goes to the extreme left?

    When I open "" woodworking " text goes left."  Cannot log in or use text. xence force a partical of the need for information is not readable. No changes were made to the pc.  monitor is made and bought to the Japan.  tried buttons on mointor with not