Pop - up a page of page process of pl/sql

Hello

I have a code of page validation (pl/sql return error text function) and a process of page (pl/sql code), they are both

assosiated with a button saying "Button1". I bring up a new page, click on the button after validations

are performed. For this I use the code
javascript:popUp2('f?p=&APP_ID.:25:&SESSION.::&DEBUG.::P25_ERROR_CODE:10', 140,140);
How can I put this javascript code in the page process(PL/Sql)?. Y at - it no other mechanism to bring up a page of

the pl/sql code itself. Help, please

Thank you

TJ

Assign the sequence 1 to your conditional branch - unconditional branch, for all other process must have a higher number of next... LOAD_POPUP is the request made by the Branch - once you change the branch, you will see a texfield for demand. Condition is request = Expression1 - put the name of the button in there.

Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
-------------------------------------------------------------------

Tags: Database

Similar Questions

  • How to run Javascript in a PL/SQL Page process?

    Hi all
    I developed a page that calls Adaptive API of PayPal payment and I had success by posting to PayPal and get a response with a valid "Paykey" using a process of PL/SQL page. I leaned heavily on 'Express Application Integration with PayPal Payments Pro' at http://www.oracle.com/technetwork/developer-tools/apex/integrating-application-express-wit-129259.pdf


    Now I need to call again PayPal (to process page) for my user to approve the payment set up exactly.

    PayPal's API doc says to run the following Javascript code, but I can't understand how to call her leave in a PL/SQL Page process...:


    function javascriptLaunch()
    {
    flow_Javascript = new PAYPAL.apps.DGFlow ({expType: "light"});
    flow_Javascript.startFlow ("< paykey returned earlier > https://www.sandbox.paypal.com/webapps/adaptivepayment/flow/pay?paykey=");
    }
    javascriptLaunch(); -For auto-run function


    Note: The 'src' in the header is:
    < head >
    < script src = "https://www.paypalobjects.com/js/external/dg.js" type = "text/javascript" > < / script >
    < / head >


    So if I take the URL in the startFlow (and provide a paykey valid) and put it in my browser the page URL approval as expected, but I need to have the "pop up" approval in a lightbox of a PL/SQL Page process.

    I think that it is something simple, but I need your help.

    Thank you
    Russ

    Below, I've included the entire contents of a local file, I created to prove the javascriptLaunch works and isn't the problem (of course PayPal gives an error in the light table, because he can't find a 'junk' paykey):

    < html >
    < head >
    < script src = "https://www.paypalobjects.com/js/external/dg.js" type = "text/javascript" > < / script >
    < / head >

    < body >

    < script type = "text/javascript" >
    function javascriptLaunch()
    {
    flow_Javascript = new PAYPAL.apps.DGFlow ({expType: "light"});
    flow_Javascript.startFlow ("https://www.sandbox.paypal.com/webapps/adaptivepayment/flow/pay?paykey=junk");
    }
    javascriptLaunch();

    < /script >



    < / html >

    Why should it be run from pl/sql process?

    What is the process? What is a button on the page?
    Could this button call a dynamic action that fires to javascript, and then a few plsql, then call your required javascript API?

    Scott

  • What is the correct syntax to reference a page point (P23_ID, for example) in a process of PL/SQL page after submit?

    What is the correct syntax to reference a page point (P23_ID, for example) in a process of PL/SQL page after submit?

    TexasApexDeveloper wrote:

    Variable binding is preferred: P23_ID you can also use & P23_ID. (variable substitution notation).

    Bind variable and static text substitution references are not interchangeable. For example, static text substitution references cannot be used in allocation targets:

    :P23_ID  := 'foo';  -- valid
    &P23_ID. := 'bar'; -- syntax error (or something weird or sinister due to SQL injection)
    

    Substituting static text references should be avoided in SQL and PL/SQL code because of the risk of behavior topic SQL injection and / odd error because of values containing quotes, etc.

  • Pop-up - modal Page Cancel button

    Dear friends,

    I have a question.
    I tried to create the button close pop-up modal page.
    What should I use javascript or any dynamic action?

    I used this video

    http://skillbuilders.com/webinars/Webinar.cfm/53?title=introducing%20SkillBuilders%20Modal%20page%20Plug-in

    But it does not show how to activate the Cancel button

    Thank you

    If you use the plugin and you have a button cancel on your target page, you can simply do the following:

    1. in the Cancel button, set the Action to "Redirect to URL.
    2. Enter the following text in the url of the target field:

    javascript:parent.$(parent.document).apex_modal_page('close');
    
  • How to get a different value of element from page to page process.

    Hi all

    I have a submit after process on page 32 to insert into a table.
    and a 34 page where there is a region that contains on page 32.
    what page 32 get submitted (as well as process) it contains no value for: P34_USER_ID although I'm on page 34 and: P34_USER_ID point of value.

    submit after process on page 32 Type: PL/SQL-> anonymous block have code like...
    ...
    INSERT INTO LETTER_ATTACH (LETTER_ID, FILENAME, MIMETYPE, ATTACHMENT, UPDATE_DATE)
    SELECT: P34_USER_ID,: P32_FILE_INPUT, blob_content, mime_type, SYSDATE
    OF wwv_flow_files
    WHERE NAME =: P32_FILE_INPUT;
    ...

    can not find something wrong...! ?? :(
    Please help me on this matter.


    Roman

    Published by: user13416557 on August 27, 2011 13:48

    Hello

    When you are on page 32, check that it has value on the session state for the point 34 page
    http://download.Oracle.com/docs/CD/E23903_01/doc/doc.41/e21674/concept_ses.htm#sthref100

    Kind regards
    Jari

  • By using Cfthread to separate the page processing intensive tasks

    Hello

    I have what I think, it's a pretty simple distinction must be fairly intensive standard page processing code. It's under CF8.

    We have a page that does a lot of outcome investigating tens of thousands of records. It is used very rarely and only by one or two people, but our server is not really equipped to do this kind of thing very quickly.

    The consequence is that all of the intensive process can push the loading of the page about 120 seconds. That's fine, because everyone knows what is happening and why, but I would like to see sort of "Please wait" message and load all the layout is not just «wait my.web.site...» "in their browser.

    I put code in a cfthread supercomputers article, and that seemed to do what I want, finally, with regard to the rest of the page load first. The problem is that the outputs nothing - thread about what is covered in the thread gets displayed on the page.

    It's the first time I used CFTHREAD, and I understand conceptually from a data processing perspective (for example, the examples given in the documentation when you make asynchronous as tasks download something or by entering an external RSS feed). I don't know how it relates to the processing of the page. In other words, it seems to me that I'm either something simple incorrectly, or well CFTHREAD can not be used in this way.

    Thank you very much

    AQ

    You must control the flow of thread, for example, like this:

    TestPage.cfm

    ============


       


  • Call for a process of page in another page process? Is this possible?

    Hello guys! Just a quick question. I had two processes of pl/sql on a page and would like to use a process within process2.

    Is it possible and how to reference process 1? Should I just call it a procedure?

    Thanks in advance!

    Bdrgs,

    SEB

    You can condition the second process and run it like this:

    1. your first process has a lower sequence and after a success, it will define a page hidden to a certain value element

    2. your second process will have a higher sequence and will only run if the previous one has been completed successfully

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Process of PL/SQL error, the display of msg in the same page?

    Hello

    I have a process of PL/SQL. When the process completes successfully and the branch. After the treatment. Action points to the same page and with "include the success of process message" enabled, the success message is displayed on the same page. When I error in the page, a new page appears with the error and a link for the user to return to the Application (ie the previous page). Is it possible in this case error, or when I use RAISE_APPLICATION_ERROR error message displayed on the same page as a page of success?

    TIA

    Published by: Ms on 10 Δεκ 2009 07:51 πμ

    TIA,

    See the analysis of Re: update of a collection should error wire. It will provide the info you are looking for :-), I hope it

    See you soon,.
    Hari

  • a window keeps popping up that says: Windows host process (Rundll32) has stopped working - a problem caused blocking the program works correctly. Windows will close the program and notify you if a solution is available

    a window keeps popping up that says: Windows host process (Rundll32) has stopped working - a problem caused blocking the program works correctly. Windows will close the program and notify you if a solution is available

    Check if you have picked up malware in your travels.

    I see a lot of recommendations here for programs such as -

    Malwarebytes' Anti-Malware
    http://www.Malwarebytes.org/MBAM.php

    SuperAntispyware
    http://SUPERAntiSpyware.com/

    Check in safe mode.

    Vista advanced boot options
    http://Techblissonline.com/Vista-advanced-boot-options/

    See if you can isolate a possible cause.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/default.aspx/KB/929135

  • Apex: process of pl/sql output message

    Apex 4.2

    It's kind of a question Apex and Pl/Sql, but the Apex a fortiori because I use this environment. I have a process of pl/sql with an IF - Else statement. It is a real simple process where you check:

    IF P101_Count > 1 Then

    Do things;

    On the other

    Generate an error message.

    The process runs when I click on a button.

    I don't know how to get an error message to be displayed to the screen. I'm not sure of the syntax.

    Any help on this would be greatly appreciated. Thanks in advance.

    Well, you can actually use the same installation (error or success) to make the message appear.

    Just put your entire snippet in a process Page. In this process, fill out an element hidden with the value that you want to display. In the process of Page definition screen, you will see an area to enter an Error Message and a success Message. In people, just put the name of your element hidden, for example & P1_MY_HIDDEN_ITEM.

    -Joe

  • Button to call popup, confirm appeal process from PL/SQL?

    My apologies in advance to be new at the APEX. I don't know javascript, PL/SQL.
    I have an HTML page with a top button named "Deactivate". When I click on the button
    I'd like a contextual dialog box confirming that I would do the inactive file.

    So if the user clicks "OK", then I would a process of PL/SQL to update my table row
    (I have the primary key of the row stored in an item on the page). Should be simple right?

    Thank you in advance.

    Carol

    Hello

    There are several ways that you can do. We'd watch the feature around a button Delete in a form that this popup a message asking the user to confirm the deletion.

    What I tend to do, however, is to have a defined button template that allows me to run some JavaScript by clicking on the button, but without presenting the page.

    To do this, you must first create a new model of button:

    1 - Go to the components shared, models
    2 - Click on create to create a new model and when you are prompted, enter / select the following text:
    -Click on the model type
    -Check that you have selected 'as a copy of any existing model.
    -Find the "Button" model (or one you use the most for your pages - we will take a copy of it and work on it)
    -Change the name of "Copy of the button" "Button for javascript" (or something similar) and select Yes to copy
    3. then click on to create the template
    4 - once created, locate and change the model by clicking on the link for the name of the new model
    5. in the new model, you have a template parameter. What you see will depend on what theme you are using and which button you copied.

    You will see probably in there somewhere something like:

    <a href="#LINK#">#LABEL#</a>
    

    This is to change:

    <a href="#" #BUTTON_ATTRIBUTES#>#LABEL#</a>
    

    then click on apply changes to save this.

    #LINK # would be replaced by the feature that submits the page

    href = "#" indicates to the browser not to move to another page when the user clicks on the button

    #BUTTON_ATTRIBUTES # allows you to use the "Key Attributes" setting a button to control what happens when the button is clicked.

    If you have any other attribute in the tag has (for example, class = "... "), do not remove those. If there is nothing else in the template parameter, do not change that either (for example, the button may actually be in the TABLE tags and we need those to keep the structure intact)

    Fortunately, this step must be done once the new model button can be used to any button

    We now need to update your button:

    1 Edit button and go down to the setting of the attributes button
    2 - Add in:

    ID="P1_MY_BUTTON" onclick="javascript:confirmDeactivation();"
    

    Change P1_MY_BUTTON regardless of the name of your button is

    3 - change the template used for the button to your new
    4 - Click on apply changes to save as

    Now, we must add in javascript:

    1 - change page attributes (top icon right in the Page Rendering topic Page)
    2 - Go to the creation of the HTML header and add in:

    <script type="javascript">
    function confirmDeactivation()
    (
      if (confirm('Are you sure you want to deactivate this record?'))
      {
        doSubmit('P1_MY_BUTTON');
      }
      else
      {
        return false;
      }
    )
    </script>
    

    3 - Click on apply changes to save as

    Finally, you have your process:

    1 - click on the Add icon processes in the section of the process in the center column
    2. create a new "Anonymous block" PL/SQL process that runs on-demand, after calculations and Validations.
    3 - process code should be something like:

    BEGIN
      UPDATE MYTABLE
      SET STATUS = 'I'
      WHERE PK_ID = :P1_PK_ID;
    END;
    

    P1_PK_ID should be whatever is the name of the page element referencing the primary key of your file

    4. you can provide success or failure messages if you wish
    5. in the settings of Conditions, select P1_MY_BUTTON from the list when you press button
    6. click on create processes

    I'm assuming there's a branch on your page that could be triggered by clicking on this button

    Now, when the user clicks the button, instead of submitting the page, it triggers the javascript code. It prompts the user to confirm the action. If he clicks OK, a doSubmit() runs that shows the page using the name of the button, the value of the claim. The process detects this name and executes the update

    Andy

  • Generation of CSV via the process of PL/SQL

    I have a unique situation. I need to generate a CSV file, which is based on a query to use in a mail merge in MS Word, but I need to do so using PL/SQL instead of declaring exports due to the record-keeping requirements. Basically, I need to get all the query of a sudden lines I take a snapshot of the results at a time given in time, build my CSV to download, so I have to go back using the files I read to mark the records that were generated in the CSV file so that the generation of fusion file is documented. Any thoughts? So, I would avoid using the file system on the server running if possible as you build a page Web of PL/SQL procedure its self simply returns the file in the web browser. Any ideas?

    Hello

    I think this can be handled in a procedure. Consider the following:

    create or replace PROCEDURE "DOWNLOAD_EMPLOYEES"
    (
     ID in NUMBER
    )
    AS
      vLENGTH NUMBER;
      vDATA VARCHAR2(8000);
      vSEP VARCHAR2(1);
    BEGIN
      vSEP := CHR(10);
      vDATA := '"EMPNO","ENAME"' || vSEP;
      FOR C IN (SELECT EMPNO, ENAME FROM EMP ORDER BY ENAME)
      LOOP
        vDATA := vDATA || '"' || C.EMPNO || '","' || C.ENAME || '"' || vSEP;
      END LOOP;
      vLENGTH := LENGTH(vDATA);
      owa_util.mime_header('text/plain', FALSE);
      htp.p('Content-length: ' || vLENGTH);
      htp.p('Content-Disposition: attachment; filename="Employees.csv"');
      owa_util.http_header_close;
      htp.p(vDATA);
    END;
    

    Create in the SQL command window followed:

    GRANT EXECUTE ON DOWNLOAD_EMPLOYEES TO PUBLIC
    

    Then add an A tag on a page:

    <a href="#OWNER#.DOWNLOAD_EMPLOYEES?ID=1">Download</a>
    

    When you click the link, the procedure is executed, and a download comes into play.

    This is, of course, just for a download and is limited by the fact that I use a varchar2 (8000) - If you need a larger amount of data, you must switch to a CLOB.

    Now, as she uses a cursor (C), we can use this to insert records into a table of newspaper or anywhere where you want to store the fact that recording has been included in the download:

    FOR C IN...
    LOOP
    ...
    INSERT INTO LOG_TABLE VALUES (C.EMPNO, SYSDATE);
    END LOOP;
    

    Then, as it is a single transaction, if there is no error log entries are cancelled.

    Andy

    PS - I do not know if I did something wrong somewhere, but I couldn't make it work properly without using the parameter - where the ID

  • button with message of confirmation and process of PL/SQL

    HY!

    I need a button with a confirmation message ("really do you want... (' = > OK, cancel)

    If the user clicks "OK" the PL/SQL process should do an insert.

    For the button, I defined Action: "javascript:confirmSubmit('Would_you...?','RESUBMIT')."

    and in the header of the document I have:

    <script type="text/javascript">
    //<![CDATA[
    
    function confirmSubmit(msg,req){
        if(req==null){req='Submit'}
        var confSub = msg;
        if(confSub == null){
            confSub= confirm("Would you ...?");
        }else{
            confSub= confirm(msg);}
        if (confSub==true){doSubmit(req);}
    }
          
    //]]>
    </script>
    

    The process of PL/SQL does not work after pressing the button (I choose the right button to "When Button pressed").

    But the process works well, if I choose any State of the button.

    Why is it like that?

    And how can I get there?

    Hello

    How about using apex.confirm ( JavaScript API )? Then you can condition the process based on the REQUEST.

    Welcome.

  • I get pop - up &amp; white pages loaded - secure setting works very well

    I get white pages or pages that I don't ask for much. There are also tons of windows pop up and notifications that appear and who should not be there.

    After scanning your system for malware install AdblockPlus and subscribe to a list of filters.

    https://addons.Mozilla.org/en-us/Firefox/addon/Adblock-Plus/

  • CM1415fn: all-in-one printer HP CM1415fn clining after each numbered page process

    I have all-in-one printer CM1415fn. After each page same printer starts cleaning process, then the even pages printed again. For example, I print or copy 4 pages. First are the pages 1 and 2, and then the process begins, then clean again page 2, then pages 3 and 4, then againg cleaning process and once again the page 4.

    What is the solution of this problem?

    (we tried the firmware update, but it's the same result)

    The cause was in contact with the sensor of pollution with foreign body (a piece of packing material). After removing the periodic cleaning of the object has stopped.

Maybe you are looking for

  • My ipod screen is black and I can not turn on, please help

    Hi my iPod Touch 5th generation 16 GB, exploded some 2 to 3 months ago. I turned on, but he couldn't come. I loaded but there was no indication that he was in charge. I connected it to my computer but itunes does not read, the screen is all black all

  • HP ENVY 14 SPECTRUM: Steaming Video is distorted

    Recently, my reading of the video was distorted. During playback of Youtube videos for example, there is a line dividing the image when there is a fast action playing. However, any video that has been recorded on the disk does not show this interfere

  • Duplex printing on Macx 4240N

    So, we have a printer HP Laserjet 4240n that fails to print duplex. After going to the layout, "Two faces" option is greyed out and unselectable. What can be done to fix this? Thank you!

  • execution timing

    Hello I'm going to build a real-time application and I want to work for a few minutes, an automatically. Anyone have any idea how to do? Thank you Concerning

  • Critical error message

    I play world of Warcraft and played it on this computer for 4 years, but a few days ago I started to receive a critical error message when I tried to log in saying theres not enough memory for this command. What can I do to solve the critical error m