Oracle Apex open modal dialog URL sent a Null value

Salvation;

I am trying to open a url in a modal dialog window, when you click an item in a report, defining a local variable with the primary key using ' $s ('P95_X9', #SEQ_ORDEM_SERVICO #); "return false", but in a javascript call to open the field of modal dialog P95_X9 previously set is sent with a null value.

Below the call to URL:

f? p = & APP_ID.:67: & APP_SESSION.:P67_NUMEROOS, P67_HIDENPROJETO: & P95_X9, & P95_PROJE. »

& P95_X9. -> is sent with a null value.

How to solve this problem?

Thank you.

981949 wrote:
Salvation;

I am trying to open a url in a modal dialog window, when you click an item in a report, defining a local variable with the primary key using ' $s ('P95_X9', #SEQ_ORDEM_SERVICO #); "return false", but in a javascript call to open the field of modal dialog P95_X9 previously set is sent with a null value.

Below the call to URL:

f? p = & APP_ID.: 67: & APP_SESSION. : P67_NUMEROOS, P67_HIDENPROJETO: & P95_X9, & P95_PROJE. »

& P95_X9. -> is sent with a null value.

How to solve this problem?

Thank you.

f? p = & APP_ID.: 67: & APP_SESSION. : P67_NUMEROOS, P67_HIDENPROJETO: & P95_X9, & P95_PROJE. »

Replace above with

var vUrl = 'f?p=&APP_ID.:67:&APP_SESSION.::::P67_NUMEROOS,P67_HIDENPROJETO:'+$v('P95_X9')+','+$v('P95_PROJE');

now use the many vUrl as necessary!

Tags: Database

Similar Questions

  • ApEx 5: Modal dialog dynamic page title resists change

    I have a modal dialog box that is called from a page with several buttons, each of which has a value different from the value to a page element in the modal page which is then used as a change in the title of the page. It works the first time when open the dialog box indicating the title depending on button, but then this first value sticks and won't change during his call with others buttons until the calling page is updated. Then it changes according to whatever the button is first used and gets stuck again. I also tried setting the value of the element in a process of pre-rendering or dynamic action of page load, but the behavior is the same.

    The trickiest part about modal APEX pages is that the content of the page is in an iframe, but the dialog box itself (including the title bar) is in the parent window.

    The problem is that the title of the dialog box is set in the call to apex.navigation.dialog which is located in the button's onclick attribute. This code is rendered on the server when the page is rendered, so it will use whatever the current value of the dialog page is including the substitutions.

    The links should be generated on the server because of the checksum. But the checksum does not include the options of the dialog box, so it is possible to do something like that. I have two buttons that open the same dialog is a button on the other cakes and pies. Is the title of the dialog attribute: dialogue &. P32_TITLE_ARG and the buttons set P32_TITLE_ARG to 'Pies' or 'cakes '.

    original var = $("#btnPies").attr ("onclick");

    $("#btnPies").attr ("onclick", original.replace (/ title:'[^'] ' *'/, ' title: ' pies dialogue' "" "));

    origin = $("#btnCakes").attr ("onclick");

    $("#btnCakes").attr ("onclick", original.replace (/ title:'[^'] ' *'/, ' title: "Dialogue hardens" ""));

    In this case there is no need to still have P32_TITLE_ARG, unless it is used for more than just replacement of the title.

    One thing that I don't like this solution, is that it is changing the code is sensitive to changes in the way the onclick code is rendered. By changing the text of an onclick handler you basically get the browser to the code eval for you. However, most (all?) techniques that use the apex.navigation.dialog API from your JavaScript code will have to change somehow what prepare_url generates on the server.

    Another option is to set the title of the dialog box of the page apex loaded by using a dynamic page loading action.  Yet once the title of the page does not have to use the substitution so better to change it to something like 'Dialogue'... "so that it shows something reasonable while loading the content of the dialog box (page APEX).

    The code runs in the DA of the dialog page loading is very simple. What is most interesting is the use of apex.util.getTopApex. The dynamic action runs in the iframe, but the dialog box is in the parent document (dialog boxes are always opened in APEX above). Using getTopApex allows us to find the title of the dialog box in the parent document.

    apex.util.getTopApex ().jQuery(".myDialog.ui-dialog-title").text ("Dialogue" + $v ("P32_TITLE_ARG"));

    For the above to work, you shall provide your dialogue a single class (on the parent page) so that the dialog box can be found. Make sure to set the dialog box > CSS Classes do not attribute the appearance > Classes CSS attribute. I used the name of the class that is lame "myDialog '.

    The disadvantage of this method is that there is a delay until the title is set, it is the same delay as the page loads, so it may not be a problem.

  • 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

    });

  • Oracle APEX 5 - modal Close event without sending the page

    Hi experts,

    Is there a possibility how to close the modal page using 5 APEX without submitting the page called from? (just refresh the region).

    I tried to use event close modal in the parent but to start it I have to close the modal page to redirect to the parent.

    It automatically submit the parent page.

    Concerning

    J

    Hi Patrick,

    I found the right solution for me. I left the treatment of the normal page on modal button (Submit form and option SQL INSERT). At the end of the processing of the page, I created another page dealing with DIALOGUE NARROW - one of the option in the LIST on the page that deals (no action). I created record and close modal just by using the processing of the page. In the parent page I got it before (update).

    Thank you for participation.

    J

  • 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

  • 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

  • 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

  • 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

  • How to limit navigation directly via the URL when the user tries to type the page number and access this page in ORACLE APEX 4.2

    Hi all

    I developed an application where I have 6 pages and 5 tabs and based on the user role I posted the tabs for the user to access these pages.

    But when the user, who doesn't have access to the particular page (say, page 2), but still the user can navigate to it directly by typing the page number in the URL.

    I want to avoid such scenarios.

    eg: http://Apex.Oracle.com/f?p=110:2 , when the user type this in the address bar, it navigates the user to this page even if this particular user does not have access to this page.

    How to prevent the user to navigate through the URL, if the user tries to navigate directly through URLS rather than tabs, I have to give the error message.

    Version: ORACLE APEX 4.2

    Thank you

    Good reading this recent post

    Re: Authentication at the Page level

    All links to a page and the page itself must be secure.

    You can also consider the protection of session state to prevent tampering of the URL.

  • Modal dialog box in APEX 5 IR

    Hi all

    I know the new APEX 5 concept and completed in my applications, with the exception of the 1 scenario, where I need to create a link in SQL instead of column properties.

    My SQL is:

    select b.tag, b.date_sent, a.INDENIZATION_STATUS_ID, a.notes, a.id,
    (case when a.notes is null then null else '<a href="javascript:apex.navigation.dialog(''f?p='||:APP_ID||':4:'||:APP_SESSION||'::NO::P4_ID:'||a.id||''')">View Notes</a>' end) Notes_1 
    
    
    from CORREIOS_INDENIZATION_REQ a, CORREIOS_SHIPPED_OBJECT b where a.CORREIOS_SHIPPED_OBJECT_ID = b.id and (a.INDENIZATION_STATUS_ID = :P3_STATUS_ID or :P3_STATUS_ID is null) and to_char(b.date_sent,'mm/dd/yyyy') between NVL(:P1_FROM, to_char(TRUNC (SYSDATE , 'YEAR'),'mm/dd/yyyy')) and nvl(:P1_TO, to_char(SYSDATE,'mm/dd/yyyy'))
    

    If you see him, I just want to create link for modal popup if notes column have some inside of another null value. Modal popup works only if I create through the link in the column, but not in this way.

    Can someone help me out here.

    Thank you

    Sunil Bhatia

    Sunil Bhatia wrote:

    Hi all

    I know the new APEX 5 concept and completed in my applications, with the exception of the 1 scenario, where I need to create a link in SQL instead of column properties.

    My SQL is:

    1. Select a.id, a.INDENIZATION_STATUS_ID, b.tag, a.notes, b.date_sent
    2. (where the a.notes is null, null, then another 'Show the Notes' end) Notes_1
    3. of CORREIOS_INDENIZATION_REQ a, b CORREIOS_SHIPPED_OBJECT where a.CORREIOS_SHIPPED_OBJECT_ID = b.id and (a.INDENIZATION_STATUS_ID =: P3_STATUS_ID or: P3_STATUS_ID is null) and to_char(b.date_sent,'mm/dd/yyyy') between NVL (: P1_FROM, to_char (TRUNC (SYSDATE, 'YEAR'), ' mm/dd/yyyy')) and nvl (: P1_TO, to_char(SYSDATE,'mm/dd/yyyy'))

    If you see him, I just want to create link for modal popup if notes column have some inside of another null value. Modal popup works only if I create through the link in the column, but not in this way.

    Build the link to declaratively using attributes of the column binding, but retrieve the NOTES_1 column by using the following expression that returns the value null when the NOTE is null and the ID when it is not:

    ...
    nvl2(a.notes, a.id, null) notes_1
    ...
    

    In an interactive report, the link is generated only when the value of the column is not null.

    If possible, use the declarative functionality rather than coding custom.

  • Oracle APEX: automatic closing modal page on 'ESC '.

    Hello

    I am new to APEX, how to create "self-closing modal page on 'ESC' ' Please tell me the steps for APEX4.1.

    Thank you

    This should help you along
    http://www.grassroots-Oracle.com/2012/07/Apex-closing-modal-page-on-escape.html

  • How to open a modal dialog box of click of a button on the Panel?

    Hi all

    I tried to open a modal dialog box on the click of a button on the Panel the other day. But failed. I managed to have a panel appear on click of a button. But the Group appeared at the forefront of the parent panel. I don't want to. Here are some screenshots of what I managed to do and what I want to do.

    This Panel will appear on the click on the button "Click." Note that the child Panel cannot be moved outside the bounds of the parent panel.

    1.JPG

    Instead, I want the behavior of the child Panel as shown below. As the modal dialog box that appears when we create a new action game in the Actions Panel.

    2.JPG

    This Panel can be moved all around the application window. Kindly guide my way through from there to achieve.

    Thank you!

    Post edited by: poortip87

    You can open a modal secondary window like this:

    var w: Window = new Window(); A mx:Window, or your own subclass

    w.type = CSXSWindowTypes.MODAL_DIALOG; in the package com.adobe.csxs.types

    w.Open ();

    There are up to four types of different windows that you can open in the form of secondary windows, although not all are currently available in all products.

    HTH

    David.

  • How to display a validation on a modal dialog error based on a unique constraint?

    Hi all

    Apex 4.1

    See example on apex.oracle.com:

    Workspace: EDIAZJORGE

    User name: TEST

    Password: test123

    Application: 55036 - Validation of modal Page

    I have a page with two elements, to make and model, where the user will be able to enter the model, say, a car and use a pick to dolist. If make does not exist, the user can click on the [+] button that opens a modal dialog box to add a new do.

    Everything works fine except when I try to insert a double do, which triggers a unique constraint violation error:

    AJAX call back Server error ORA-00001: unique constraint (EDIAZJORGE. MAKE_UK1) violated to execute the PL/SQL Code

    I want to enter this event and inform the user about an error inside the modal dialog box, but I don't know what is the best way to achieve this. My guess is that I'll have to make an Ajax call to run an application process and capture the exception of DUP_VAL_ON_INDEX, but I'm not very familiar with the Ajax part.

    Any suggestions?

    Thank you

    Erick

    I'm sorry Erick, I was in error. You always get an alert but with a nicer message. The actions of builtin DA do not allow interaction with them, so no way to manage the return of ourselves.

    In light of this, I copied the page in enforcement 77635 1-2 and made some changes to it. Basically, I copied the code to Jorge and modified so that it uses $.ajax instead of apex.server.process. I much prefer it to htmldb_Get - you shouldn't really use it either. More $.ajax has the advantage of this apex.server.process is based on it. That should work well on 4.1.

    Sorry Jorge, won't steal the Thunder, I guess I was... bored? And decided to do some apex?

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

Maybe you are looking for