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.

Tags: Database

Similar Questions

  • 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();
    }
    
  • 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

  • Skillbuilders modal dialog box - condition for the parent page dialog box

    Hello

    When you use this great plugin, I have a dynamic action on my calling page that deals with the selection of the dialog box.
    It uses
    Select the type object: DOM
    DOM object: document
    Condition: expression javascript
    ($v ('P110_PROD_SEARCH') is 'BLAH')
    where the js expression is to ensure that I run the correct dynamic action, especially when I have a few buttons on the page referring to different variants of the modal dialog box.

    My first action is some javascript which questions the value of
    this.data.modalPageCloseValue
    It helps me to make decisions in subsequent actions on the opportunity to execute some pl/sql, for example

    In the light of a recent issue of my about a possible bug APEX (displayed with HTML item affected by the dynamic action and since we cannot put conditions on measures - I was wondering if I could incorporate something in my condition of dynamic action to stop all the dynamic enforcement action if modalPageCloseValue is null - but it seems to be out of reach?)

    Scott

    Scott,

    Ah, of course, use this:

    $v('P110_PROD_SEARCH') == 'BLAH' && this.data && this.data.modalPageCloseValue
    

    Kind regards
    Dan

    blog: http://DanielMcghan.us/
    work: http://SkillBuilders.com/APEX/
    Twitter: https://twitter.com/dmcghan

  • 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

    });

  • Page CSS-need help beyond editing options in the Page Properties dialog box

    I want to add a simple fill right and the right float to a Web site. The Page Properties dialog box allows a fill only to the left. I know the CSS code that I need to add (right margin) (float) and I could do in Dreamweaver... but is there a way to add my own little bit of code to a page? I know that you can add HTML to an object, but what about adding CSS to a page? It doesn't seem to be in the metadata tab in the <>empty space, or if this is the case, then extra bits that I don't know. Can anyone help?

    You can create your own style, save it in the root folder and a link on the page.

    Alternatively, you can try these options:

    http://musewidgets.com/collections/all/products/js-help-library-Widget

    http://musewidgets.com/collections/all/products/style-magician

    Thank you

    Sanjit

  • JavaScript: Passing values in the print dialog box

    Hello

    I have a PDF page containg 8 pages. There is a button on the first page, print then on some boxes (Page1, Page2... Page8)

    I want to open the print dialog box with already put page numbers in the selection boxes.

    Example: If I checked page 1, Page 4 boxes, print dialog box then should display values Print rang > Pages [1.4]

    How can I do this using javascript?

    Please help me

    Thank you

    Faraz

    Hi Faraz,

    That's the problem, you cannot specify a print with gaps range.

    XFA. Host.Print (1, "0", "7", 0, 1, 0, 0, 0);

    The second parameter specifies the start page (based on a system of numbering from zero). '0' will be so printed on page 1 of the form.

    The third parameter specifies the last page to print. So '7' will display the page 8 of the form.

    Here are some of the only solution I can think. Basically, the button opens the test set up dialogue (not the standard print window). This allows the user to select the right printer and settings. Then, the script looks like each page in turn and prints is as a standalone print job. If you look at the print command, you will see that the first parameter is set to '0', it is to print the page without displaying the print dialog. The fourth parameter is now on '1' to prevent the user to cancel the print job. If you look at the help file, you will get a complete description of the print command and all eight parameters.

    xfa.host.print(0, "0", "0", 1, 1, 0, 0, 0);
    

    Hope that helps,

    Niall

  • [ADF, JDev12.1.3] Lined back workflow a lot of values used as a dialog box. How to specify and pass the values to the btf appellant?

    Hallo,

    I've created a workflow bounded (containing JSPX pages) that I use as dialog box.

    There a lot of return values...

    I would like to how to go and read all values ret in the workflow limited appeal because the return value of dialogue seems to not allow a value...

    Thank you

    Federico

    You can try with returnListener, then to returnEvent.getReturnParameters ( https://myfaces.apache.org/trinidad/trinidad-api/apidocs/org/apache/myfaces/trinidad/event/ReturnEvent.html#getReturnParameters%28%29 )

    Dario

  • APEX 5: How can I change the header background in a universal theme by CSS (the page's load event)

    Hi experts,

    After that I improved a few universal application of the theme 25-Theme (UT) everything went well except one of my process of DA.

    I use a DA (Page load) where I change the background color of the div of #uHeader due to the other department wants to have a different color of it.

    He theme 25 dowry.

    Now, I would do the same thing in UT. I used the class .t-in-head-branding for her. When I change it via Firebug - looks like I need. But if I do the same process:

    DA-> Page-> load style assigned-> picker jQuery-> .t-in-head-branding error on the console, he throws firebug:

    2015-07-30_105054.png

    Is there a component theme and the jQuery loading order?

    Or something else?

    I have reproduced on apex.oracle too:

    2015-07-30_105124.png

    https://Apex.Oracle.com/pls/Apex/f?p=16502

    Demo/demo

    Check title + CSS and you can see the error in the console.

    If I use the same for the regular page element etc everything is OK.

    The best way for me should be some create another definition of theme by theme Roller and save and change that he based on variable Department is set programmatically.

    Concerning

    J

    Hello

    You want to keep your background color common to all users navigation bar, or you need to change too much based on users.

    If you want the same color for all users-

    On page 0, create new HTML box, model No.

    Put the code as