APEX 5.0 after you close a modal dialog box, I want to introduce the parent page, without losing session values

I have a parent page that triggers a modal dialog box in APEX 5.0. When the user confirms in the dialog box, it closes the dialog box by using the process of dialogue.

In the parent page, if I do not have a dynamic action "Dialog box closed", the user returned to page with the values, they recently came again here. If I add a closed action dialog box to send the page, the values are lost - it's as if the page refreshes before submitting. Someone knows how to solve this problem.

Thank you.

user3282753 wrote:

Please update your forum profile with a recognizable username instead of "user3282753": Video tutorial how to change username available

Also, is it possible to display the success message from the Page of the dialog box without updating the parent page.

See Roels Blog: display a success message after you close a modal dialog box

Tags: Database

Similar Questions

  • Proceed with the trial after you open a vi dialog box

    I am a beginner with TestStand. I'm going through the entire sequence until all end with some dialog windows left open without waiting for a user to click on OK/QUIT on the dialogue window to go to the next step of the test. I want the test at the end with no required user interaction.

    I tried with dynamically called vi, but it stops the test - waits until the user closes the window and what, he does not pass the settings of the dialog box (maybe I did something wrong with the dynamic appeal.

    Is it possible to open vi of dialogue and to proceed with the trial without user interaction?

    PS Dialogue vi only receives the arguments and displays them on the chart.

    Hey Michal,.

    You On-The-Fly reports is enabled in the options of your report? I created the sample VI to run in a new thread and set a breakpoint later in the sequence. At this point, in the base_dn with my movie file folder, I got a report_Tmp.xml file that contains the part of the report up to date.

  • Position of the modal dialog box

    Hi,.

    Could someone explain to me how the op i tion to the wide a modal dialog is calculated?

    I put the height of my modal dialog box to 780px (all of the page of the dialog box is displayed), and the modal dialog box is displayed at the top of the window:

    780px.PNG

    A user complains that the modal dialog box is located roughly halfway to the window and having to drag upward to display all items and buttons.


    After you change the height to 600px, I get the same answer (the modal dialog box is about to halfway through the window) on my environments: different types of MacBook (Air/Pro), a window PC, all modern browsers.

    600px.PNG

    Then sometimes (how SMART is that! ) ) the modal dialog box (with the height value 780px) is positioned at the top of the page, sometimes the top less x.


    Thank you


    Jos

    Thanks John:

    Hello

    Thanks John: How to persist APEX dialog size and position. HardLikeSoftware

  • refresh the report after you close the modal popup

    Hello

    I try to call page editing as popup modal as in this example below.

    http://Apex.Oracle.com/pls/Apex/f?p=45420:3:0:no:

    It works fine, but after you change/update a registration and closing of the edit page, is not refresh the main report page (first). How can I change so it refresh the report calling when closed. Please NOTE: I do not want to refresh the whole page, but only the report after you close the page modal popup.

    Apex 4.2

    Thank you in advance... regards

    It worked, now missed me the branching code and the parameter by js... Thank you

  • interaction of the modal dialog box with master apex 5

    Hello

    Apex 4.2 that my links has been built with sql only for the specified lines, links point to event opening the modal dialog box.

    Can you tell me how should I format link to open the modal dialog box for interactive report?

    Hi jareeq,

    jareeq wrote:

    Apex 4.2 that my links has been built with sql only for the specified lines, links point to event opening the modal dialog box.

    Can you tell me how should I format link to open the modal dialog box for interactive report?

    Please see the example of a modal dialog box of region in sample dialogue is available in packaged Application.

    This will give you an idea how to call a modal dialog box for interactive report link.

    or better create sample on apex.oracle.com which will be easier for users to give you the appropriate solution.

    Kind regards

    Jitendra

  • After you download Firefox 4, my Google toolbar has disappeared. The new F4 page has no opinion, etc. to tools at the top. WHY I would risk this again by accepting the invitation to download 5?

    After you download Firefox 4, my Google toolbar has disappeared. The new F4 page has no opinion, etc. to tools at the top. WHY I would risk this again by accepting the invitation to download 5?

    Changes in the toolbars:

    I don't like the changes made to the user interface either, rather than to save toolbar space, they would have much more space with 1/10 the functionality. But the important thing is that it's Firefox and you can customize things yourself. Your complaints about the Firefox toolbars are the top 10 items in what follows and they are quickly fixed.

    You can make Firefox 5.0 looks not like Firefox 3.6.19, see numbered 1 to 10 points in the next topic difficulty Firefox 4.0 UI toolbar, problems (Make Firefox 5.0, or 4.0.1 resemble 3.6). If you make changes, you must be aware of what has changed and what it takes to use changed or missing features.

    hostage to the third party toolbar:

    Why you would bind your use of any third-party toolbar browser, which was never really necessary, and even less be hostage to not update to Firefox. Google has had over a year to update their toolbar for Firefox 4 and changes for Firefox 5 could have been tested for several months. Google has waited very long before for finally stating that they would maintain is no longer their toolbar for Firefox, claiming that it was not necessary, and that the items were in Firefox. Also be aware that the features are also in their own browser that also do not need or use the Google toolbar. Not only is Mozilla open source, but all the information is available to anyone - you can even listen online meetings yourself or wait for a printed reviewa.
    There is no change to the user interface of Firefox 4 to 5 and probably even not through Firefox 7

    Life without the Google toolbar:

    You can read this article, on the basis of assessment of own Google features were already in Firefox and expanded from there.

    Kicking a dead horse:

    The Google toolbar is no longer supported by Google in Firefox 5 and more ', you may be able to get what you want from him for a limited time, the instructions to install the Google toolbar have been posted before that Google has actually announced a fall support.

    Please mark solved the problems, so based on the best response to your posted question that solves or helped you to find a solution.

  • After you create a new playlist in iTunes, every song has the cover of the album and no box on the left side. How can I remove from the work and recover the box? TIA

    After you create a new playlist in iTunes, every song has the cover of the album and no box on the left side. How can I remove from the work and recover the box? TIA

    You can change the appearance of a selection by clicking on "reading list" in the upper right of the iTunes window. The desired view is probably "tracks"

  • After you download a movie windows media player trys to open the file in the library and will not play movie I can do

    After you download a movie windows media player trys to open the file in the photo gallery and won't play movie what can I did the same thing when I try to play a dvd

    If you are using Win XP: -.

    http://www.dougknox.com/XP/file_assoc.htm

  • Apex 5 - modal dialog box page mode

    I have a page that is implemented as a modal dialog box.

    I want to do to prevent closing the page of the ESC key.

    Why? because I have the code that needs to run if the user clicks on a button cancel or close the page in any other way as a backup.

    I tried:

    $(document) .keyup (function (e) {}

    If (e.keyCode is 27)

    Console.log ("key" ESC "captured do some stuff");

    });

    But the event is never reached.

    With the help of Inspector Chrome, I tried to identify the dialogues of candidate for this approach $(«div.t-dialogue») .dialog ({closeOnEscape: false});

    With no result.

    I solved the problem, does not capture the ESC key, but with:

    $( window ).unload(function() {

    test a flag here the code execution

    });

  • Article not saved when the item is in a modal dialog box of jquery

    Hi all


    I followed the instructions here:
    http://shijesh.WordPress.com/2010/04/10/jQuery-modal-form-in-Apex-4/
    to create a modal jquery dialog, this is the code that I added in the html header:
    <link rel="stylesheet" href = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/
    redmond/jquery-ui.css" type="text/css" />
    
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"> </script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script>
    <script type="text/javascript">
    $( function() {
       $('#ModalForm').dialog(
       {
            modal : true ,
            autoOpen : false ,
            width : 425,
            closeText : 'Close',
            stack : false,
            resizable : false,
            buttons  : {
                Cancel : function() {
                         closeForm();
                    } ,
                Save : function() {
                    updateMEMOVELD();
                }
                       }
       });
    });
    
    function openForm()
    {
        $('#ModalForm').dialog('open');
    }
    
    function closeForm()
    {
        //$('#ModalForm input[type="textarea"]').val('');
        $('#ModalForm').dialog('close');
    }
    
    function updateMEMOVELD () 
    {
       var get = new htmldb_Get(null, &APP_ID.,    
                        'APPLICATION_PROCESS=f_memo', 0);
       get.add('P9_MEMOVELD',$v('P9_MEMOVELD'));
       var gReturn= get.get();
       //alert(gReturn);
       //alert($v('P9_DATUM'));
      $s('P9_MEMOVELD',gReturn);
      alert($v('P9_MEMOVELD'));
      $s('P9_MEMOVELD_COPY',$v('P9_MEMOVELD'));  
      $('#ModalForm').dialog('close');
    }
    </script>
    my situation is a little different, my modal doesn't have to perform a sql update, just to change a field
    the user will then record in the main form
    for some reason any field never gets updated in the db
    I even created an application on the application called f_memo process:
    BEGIN
      APEX_UTIL.SET_SESSION_STATE('P9_MEMOVELD',:P9_MEMOVELD);
      htp.p(:P9_MEMOVELD);
    END;
    Why my domain is not send to the db?
    It works when I remove this from the header of the region:
    < d i v id="ModalForm" title="Add Person" style=" d isplay:n one  "   >
    but then of course I have more a modal dialog box



    What's wrong?


    I put the code online at apex.oracle.com
    workspace XONIXRS
    login/password demo/demo
    Run the application
    Click lijst (invoices) without (in the region of the right sidebar)
    Then click on the button Search (search)
    a report is displayed, click on edit on the first line (200900017)
    now, a form appears, click the memo of pure and simple button
    now the modal shows upward, change the field and click Save
    Click ok (for warning) and then click on save the invoice
    you stay on the same page
    Now click on town
    and then click on edit on the first line (200900017) new
    then click on note even once, you will see that the memo has not been changed

    How comes?

    KR
    Martin

    The problem is that the creation of a region of a modal rise this area of the html code. Take a look at the DOM when you run your page and not the html source code, because that does not reflect the changes to the DOM is the loading of the page. This means that your memo field is far from the FORM tags and actually only submit to the session state. The issue is not addressed when you send page! You can follow through your debugging page. Memo is not saved and untreated.
    Try saving the value of session state is not enough, it does not really matter in this case. The time that you submit the page, session state is crushed by the submitted values of the elements.
    So what I did:


    • Move P9_MEMOVELD to the FACTUUR region, as well as all other db fields

    • change the type of hidden

    • the protected value not

    • in modal region to create a new page P9_MEMOVELD_POP, type textfield element

    • Set the source to always use a page element as a source, with the source P9_MEMOVELD

    • change of function updatememoveld:

      function updateMEMOVELD ()
      {
         /*
         var get = new htmldb_Get(null, &APP_ID.,
                          'APPLICATION_PROCESS=f_memo', 0);
         get.add('P9_MEMOVELD',$v('P9_MEMOVELD'));
         var gReturn= get.get();
         //alert(gReturn);
         //alert($v('P9_DATUM'));
        $s('P9_MEMOVELD',gReturn);
        alert($v('P9_MEMOVELD'));
        $s('P9_MEMOVELD_COPY',$v('P9_MEMOVELD'));
        */
        $s('P9_MEMOVELD',$v('P9_MEMOVELD_POP'));
        $('#ModalForm').dialog('close');
      }
      

      If you want or need the session state as a whole belongs to you, it depends on if you are using this also dynamically on the page and therefore to influence results, but I don't think it will be (it's a Memo field...)



    Additional notes:

    • Be careful with the jquery libraries! The standard libraries are included, but you add previous versions too! 1.4.2 this could cause problems of...

    • Use your models better. Why did you would wrap a region in the div tags? Change or add a model of region to be DIV tags You can then easily assign a static id in this region and target. This will save you from enveloping the wrappers wrapped (cause it is what looks like the code that is generated in the end).

  • Helps the modal dialog box a value back to the calling page

    Greetings,

    Apex Version: 4.1.0.0.32


    What I'm trying to do is create a modal dialogue that is called from a form page. The user dialog box will report to IR which allow him to select a line and send a value of this line to a field of the calling page. I work in Firefox, but I get an error using IE 8. I hope that someone can show me why it does not work in Internet Explorer.

    Here's how I do it:

    Of the calling page:

    Created a button
    Action: Redirect URL
    Target URL: javascript:var rc = window.showModalDialog ('f? p = & APP_ID.:70: & SESSION.: & DEBUG.:', ",'resizable: Yes;) Center: Yes; dialogWidth:1000px; dialogHeight:500px ;') ;


    On the page called:

    The called page is an IR report where the query returns this as one of the columns:

    * (Note: I had to put a point '.' before the onclick so he could show in this thread.) It is not there in my actual code.) *
    select
    <a href="#" name="z" style="color:blue; text-decoration:underline;" .onclick="javascript:passBack(''' || LOT_NO ||''');">Select</a>' SelectThis
    , column1
    , column2
    from sometablename;
    This solves the anchor:
    <a .onclick="javascript:passBack('232158');"  href="#">Select</a>
    Here is the function Javascript is called the anchor onclick:
    function passBack(passVal1)
    {
      opener.document.getElementById("P75_ITEM1").value = passVal1;
      close();
    }
    When I run the present in Firefox, it works as expected. I click the button on the parent page. The modal dialog box is open and the report of the IR is displayed. I click on one of the links in the report and it returns the correct value to the appellant and closed page modal dialog box.

    When I run it in IE8, it fails. I click the button on the parent page. The modal dialog box is open and the report of the IR is displayed. I click on one of the links in the report and I get this error: 'opener.document is null or not an object ".

    I hope that it is clear and that someone can help.

    Thank you

    Larry

    A quick google search determines that window.opener does not exist when you use window.showModalDialog

    Range of suggestions to use window.open instead of window.showModalDialog to use instead of window.opener dialogArguments

    Try the following:

    The parent page to define a getPopupValue() function:

     function getPopupValue(){
       var dr =  window.showModalDialog('f?p=&APP_ID.:70:&SESSION.::&DEBUG.:::','','resizable:yes;center:yes;dialogWidth:1000px;dialogHeight:500px;');
    
        if ( (dr != undefined) && (dr != '') && (dr != false) ){
         $x("P75_ITEM1").value = dr;
        }
     }
    

    Change the url of the button to call the function:

     javascript:getPopupValue(); 
    

    On the popup page change the valve function for:

    function passBack(passVal1)
    {
      returnValue = passVal1;
      close();
    }
    
  • How to set the location of the display of the modal dialog box?

    Hello

    Setting the height of a modal dialog box seems to influence the position of the modal dialog in the window.

    (See also the Position of the modal dialog box)

    If anyone can confirm this? And if so, how can I handle it?

    Thank you

    Jos

    Hello

    Thanks John: How to persist APEX dialog size and position. HardLikeSoftware

  • Number of the modal dialog box

    Hi team,

    I'm developing a modal pop-up dialog page base to APEX 5. My requirement is during the click on column interactive report, I need to open the modal dialog box... I don't understand what I'm doing wrong with that:

    Step 1: Created a page of normal mode 1 with interactive report and column link to page 2

    Step 2: Page created 2 with the dialog box modal as a model.

    But my link does not have apex.naviagtion.dialog as seen in the application "sample dialog. I am getting following error

    2 request 102358 dialog page cannot be returned successfully. If make sure that the template in use on page 2 is the type of model 'Page of dialogue', with the JavaScript dialog initialization appropriate, closing the dialog and dialog box cancel the code defined.

    Workspace: sun_bhatia

    User name: sunil

    Password: sunil

    Application 102358

    Please can someone tell me what wrong I do it in steps. T

    Thank you

    Sunil Bhatia

    OK, the trick to work around this problem is that the dummy parameter value must be a substitution of the report the column value string and not a literal, as I used initially.

    The IR link column and the column link in column 1 are working in the area of interactive report migrated from Standard report .

  • Returning from universal theme item values - form Page (modal dialog box)-

    Hello

    I use the universal theme - modal dialog (the form page, page 7) and intend to return several values of the item to the page back 2 when the dialog box is closed.

    I'm back from the point values P7_DNAME & P7_DEPTNO of page 7 of the elements P2_DNAME & P2_DEPTNO on page 2 but does not work.

    Form Page - Page 7 (modal dialog box)

    Process - close dialogue

    Items to return - P7_DNAME, P7_DEPTNO (put several points of values here to go back to page 2)

    Report Page - Page 2 (that calls the page 7 of the modal dialog box)

    Here we have a dynamic Action. I use the event ""closed dialogue ' and 'Set value' action "

    Event (closed dialog box) -

    Action - set

    -Define (return goods of dialogue) - P7_DNAME, P7_DEPTNO Type

    -Selection Type (items) - P2_DNAME, P2_DEPTNO [here I am back to several items.]

    If I go back more than one Page values element, it doesn't any idea WHY?

    BUT if I'm back only a single value of point, there works perfectly well.

    Thank you

    Deepak

    You can return multiple items at once and their values are sent along, but you cannot set multiple items with different values by the action of a set value.

    You must create an action of the value set for each element you want to set the value with the value of the element to return.

  • State of the coast customer Pass to the modal dialog box

    Hi guys,.

    I would like to open a modal dialog box and change the value of a select list of the modal dialog box. I have to be able to switch the status of the customer value using apex.item("P1_DEPTNO").getValue (). The declarative method to use modal dialog boxes is to use a button and a link to the page, where everything is taken care for us, the value, the checksum for the protection of session state, etc..

    But sometimes we need to go on the side of current customer State the modal page, for example, while we are in the middle of creating a new row in a table... and the value is not yet stored in the database.

    So, how can we do this? By the way the page in progress and also variables to generate the control are appropriate for the items to be passed.

    Since there is no dynamic action to do this directly, I tried to attach a dynamic action to a button and run javascript to open the dialog box (https://docs.oracle.com/cd/E59726_01/doc.50/e39149/javascript_api.htm#AEAPI29504):

    var l_url="f?p="+$v("pFlowId")+":2:"+$v("pInstance")+"::::P2_DEPTNO:"+apex.item("P1_DEPTNO").getValue();
    alert (l_url);
    
    
    apex.navigation.dialog(l_url, {
        title:'About',
        height:'480',
        width:'800',
        maxWidth:'1200',
        modal:true,
        resizable:false },
        '',
        $('#EMP_REPORT'));
      
    
    
    

    Unfortunately, I get an error internal an error:

    2 request 157 dialog page cannot be returned successfully. If make sure that the template in use on page 2 is the type of model 'Page of dialogue', with the JavaScript dialog initialization appropriate, closing the dialog and dialog box cancel the code defined.

    I do not understand the error message since I use the theme 42 and the handling of the ordinary modal dialog box works.

    Would appreciate advice.

    See you soon,.

    ~ Dietmar.

    Hi Dietmar,

    you're always coming to these requirements of fancy...

    The following has worked for me in Chrome. But to test if it works in any browser.

    1. Describe your button as usual with a link to the page of the dialog box
    2. For example to set items , specify P7_CUSTOMER_ID as the name and ~ CUSTOMER_ID ~ as value. ~ CUSTOMER_ID ~ is our placeholder that will NOT get replaced by APEX. We use it in our JavaScript code.
    3. Set the static ID of your my_button button so that we are able to access in JavaScript
    4. In the run when the Page loads page level attribute, add something like
      var myButton$ = $( "#my_button" );
      myButton$.attr( "onclick", myButton$.attr( "onclick" ).replace( "~CUSTOMER_ID~", "' + $v( 'P2_CUSTOMER_ID' ) + '" ));
      

    The JS code above will replace your reserved space and turn the link into something like

    javascript:apex.navigation.dialog('f?p=73380:7:109940056598048::NO:RP:P7_CUSTOMER_ID:' + $v( 'P2_CUSTOMER_ID' ) + '\u0026p_dialog_cs=QxixrjW-ZGmCMXTNBPlITtOG_X3aShXqYmmaugetfJ8rYKRHHpJpeskKbIEO3qpqVIkX-dWYaqbZ0_AGq3ASTg',{title:'Sample Database Application - Customer Details',height:'480',width:'660',maxWidth:'1000',modal:true,dialog:null},'t-Dialog--wizard',$('#my_button'));
    

    Obviously, you will not be able to use the Protection of the Session State for the P7_CUSTOMER_ID dialog page item, so you set the page of dialogue level attribute Access Protection Page to the Unrestricted.

    The amount of control that see you in the URL is really just to protect the dialog box itself.

    Concerning

    Patrick

Maybe you are looking for

  • Satellite L300 (PSLB8E) - standby or hibernation causes reboot

    HelloI've killed my system from vista to Windows xp.All drivers worked well, even the ahci controller.But when I try to go into sleep mode or hibernation mode windows is goiing to stanby or hibernation but the laptop restarts directly and is writing

  • HP laserjet p1102w: memory of toner p1102w

    No one knows how many cartridges the printer don't save in his memory or where I can find? Ive been through 3 until now and im save those used to fill the but I don't know if they will still be in the memory of printers or if I need to go through sev

  • Constant cpu restart

    I was wondering if someone can tell me why my guard computer restart all the time. Windows XP Service pack 3, thanks in advance for any help

  • Unity 4.0 (5) in the parent domain, cannot import users in child domains

    The unit is company.com as exchangeserver1 (partner server). The users are in company.com and state.company.com (child domain). I used the most recent Permissions Wizard and it completes successfully. I can only import users of company.com. Also, dur

  • Strange behavior of scrolling in TreeView

    I'm observing the strange scrolling behavior in a simple tree. When I am developing nodes, the exchange of the vertical scroll bar position, i.e. the node that I develop, changes its position. It is unusual (I have never seen this in a toolkit of use