Form in a popup window

Hello
I have a button on a page opening a popup window. This popup window includes a page with form and the classical Create Cancel Submit Delete buttons.
Of course, when clicking Cancel, Submit or other buttons, the popup does not close and I end up with the target page in the popup !
How can I solve this ? (I'm using apex 4)
Edited by: Arnaud Ladrière on 26 août 2010 16:16

Hi Arnaud,
You may find it useful to refer to the Build Custom Popup Pages 'How To' available here: http://www.oracle.com/technetwork/developer-tools/apex/how-to-create-custom-popups-085945.html , which outlines the steps to create the popup, including the JavaScript to pass back values to the parent page and then close the popup.
There's also numerous related threads on the forum which could also prove useful to you:
http://forums.oracle.com/forums/search.jspa?threadID=&q=how+to+close+popup+window&objID=f137&dateRange=last90days&userID=&numResults=15
Regards,
Hilary

Similar Messages

  • Opening a Form in a popup window

    Hi,
    What's the easiest way to open a Form in a popup window? Do I use Javascript or is there another way? Is there a documented example either in Technet or Metalink?
    Thanks,
    Steve West

    Hi,
    For further information you can see the following reply
    Re: Fax and voice solution technical details!
    Thanks
    Vineet

  • Open a Form in a popup window from a PL/SQL portlet

    Hi,
    I have a form that I want to open in a popup window from a URL in a PL/SQL portlet. What is the easiest way to do this? Are there any examples in here or on Metalink as to how to achieve this?
    Thanks,
    Steve West

    Is it a HTML page somewhere on a server with a HTML form on it? You can use javascript tags in ur link to do this maybe?
    javascript:window.open('http://<server name>/page.htm','mywindow','width=400,height=200')
    Obviously if this is a portal form you can also link directly to the show procedure no problems.

  • Open BW webreport via button on form in (new) popup window possible ?

    Hi,
    We need to give the opportunity to the end-users to launch a BW webreport to make a detailed analysis. I know how to do this via a button and a html iview but then the result is displayed in the same window overwriting the current content of the VC application.
    I thought to solve this by using a popup iview but I have just learned that this is not supported ?
    Can anyone give me a hint how to achieve this ? I searched for a "add hyperlink" function but didn't find that neither.

    Hi Double U,
    Ok i see, what do you mean. I thought I did a workaround and use a nested iView with a html view in a popup iView.
    Best Regards,
    Marcel
    Message was edited by:
            Marcel Salein
    A colleague told me that this is with this workaround not possible.

  • How to close the adobe forms in popup windows once.

    hi,expert..
    i show a adobe form in a popup windows in my webdynpro program...but i find out that i at least click twice on the "CLOSE" button on the right top of the window.....how can i modify my program to  close the window once..
    the original codes are as follow:
    method onactionprint .
       data lo_nd_zhrhap_vp_app_01 type ref to if_wd_context_node.
      data lo_nd_zhrhap_t_document type ref to if_wd_context_node.
      data lt_zhrhap_t_document type wd_this->elements_zhrhap_t_document.
      lo_nd_zhrhap_vp_app_01 = wd_context->get_child_node( name =
    wd_this->wdctx_zhrhap_vp_app_01 ).
      lo_nd_zhrhap_t_document = lo_nd_zhrhap_vp_app_01->get_child_node(
    name = wd_this->wdctx_zhrhap_t_document ).
      lo_nd_zhrhap_t_document->get_static_attributes_table(
        importing
          table = lt_zhrhap_t_document ).
    DATA lo_nd_zhrhap_s_app_leader TYPE REF TO if_wd_context_node.
    DATA lo_el_zhrhap_s_app_leader TYPE REF TO if_wd_context_element.
       data ls_zhrhap_s_app_leader type
    wd_this->element_zhrhap_s_app_leader.
    lo_nd_zhrhap_s_app_leader = lo_nd_zhrhap_vp_app_01->get_child_node(
    *name = wd_this->wdctx_zhrhap_s_app_leader ).
    lo_el_zhrhap_s_app_leader = lo_nd_zhrhap_s_app_leader->get_element(
    lo_el_zhrhap_s_app_leader->get_static_attributes(
       IMPORTING
         static_attributes = ls_zhrhap_s_app_leader ).
    DATA lo_nd_zhrhap_s_dates TYPE REF TO if_wd_context_node.
    DATA lo_el_zhrhap_s_dates TYPE REF TO if_wd_context_element.
       data ls_zhrhap_s_dates type wd_this->element_zhrhap_s_dates.
    lo_nd_zhrhap_s_dates = lo_nd_zhrhap_vp_app_01->get_child_node( name
    *= wd_this->wdctx_zhrhap_s_dates ).
    lo_el_zhrhap_s_dates = lo_nd_zhrhap_s_dates->get_element(  ).
    lo_el_zhrhap_s_dates->get_static_attributes(
       IMPORTING
         static_attributes = ls_zhrhap_s_dates ).
    采集表名称和日期
      data lo_nd_if_data type ref to if_wd_context_node.
      data lo_el_if_data type ref to if_wd_context_element.
      data ls_if_data type wd_this->element_if_data.
      lo_nd_if_data = wd_context->get_child_node( name =
    wd_this->wdctx_if_data ).
      lo_el_if_data = lo_nd_if_data->get_element(  ).
      lo_el_if_data->get_static_attributes(
        importing
          static_attributes = ls_if_data ).
      ls_zhrhap_s_dates-valid_begda = ls_if_data-begda.
      ls_zhrhap_s_dates-valid_endda = ls_if_data-endda.
    DATA lo_el_zhrhap_vp_app_01 TYPE REF TO if_wd_context_element.
       data ls_zhrhap_vp_app_01 type wd_this->element_zhrhap_vp_app_01.
       data lv_description like ls_zhrhap_vp_app_01-description.
    lo_el_zhrhap_vp_app_01 = lo_nd_zhrhap_vp_app_01->get_element(  ).
    lo_el_zhrhap_vp_app_01->get_attribute(
       EXPORTING
         name =  `DESCRIPTION`
       IMPORTING
         value = lv_description ).
    REPLACE ALL OCCURRENCES OF '类别:' in lv_description with ''.
      lv_description = ls_if_data-stext.
      data l_is_ok    type boole_d.
      data pdf_source type xstring.
      data l_msg      type ref to cl_hrpa_message_list.
      create object l_msg.
      call method zcl_hr_appraisal_utility=>print_contract_direct
        exporting
        form_type           = 'COD'
          zhrhap_t_document   = lt_zhrhap_t_document
          zhrhap_s_dates      = ls_zhrhap_s_dates
          zhrhap_s_app_leader = ls_zhrhap_s_app_leader
          description         = lv_description
        job_description     =
          message_handler     = l_msg
         importing
          is_ok               = l_is_ok
          pdf_xstring         = pdf_source
      check l_is_ok is not initial and pdf_source is not initial.
      data lo_nd_pdf type ref to if_wd_context_node.
      data lo_el_pdf type ref to if_wd_context_element.
      data ls_pdf type wd_this->element_pdf.
      data lv_source like ls_pdf-source.
      lo_nd_pdf = wd_context->get_child_node( name = wd_this->wdctx_pdf ).
      lo_el_pdf = lo_nd_pdf->get_element(  ).
      lo_el_pdf->set_attribute(
        exporting
          name =  `SOURCE`
          value = pdf_source ).
    *-->ADOBE View embeded to ViewContainer UI
      data: lr_view               type ref to if_wd_view_controller,
            lr_api_main           type ref to if_wd_component,
            lr_window_man         type ref to if_wd_window_manager,
            comp_usage            type ref to if_wd_component_usage,
            l_title               type string value '打印合同',
            lr_window             type ref to if_wd_window.
      lr_view = wd_this->wd_get_api( ).
      lr_api_main = wd_comp_controller->wd_get_api( ).
      lr_window_man = lr_api_main->get_window_manager( ).
    l_title = wd_colr_mp_controller->model->get_text( '006' ).
      call method lr_window_man->create_window
        exporting
          modal        = abap_true
          window_name  = 'POPUP'
          title        = l_title
          button_kind  = if_wd_window=>co_buttons_yesno
         message_type = if_wd_window=>co_msg_type_none
          default_button = if_wd_window=>co_button_yes
        receiving
          window       = lr_window.
      lr_window->open( ).
    endmethod.
    looking forward to your help....thanks in advance

    Ping,
    1st, see the Markup formatting options over on the right part of the screen - if you wrap your code between the code tags it will read MUCH better.
    2nd, I can't replicate this issue - we have several PDFs opening in new windows & we only need to click once on the clost 'X' - how are you calling the PDF in a new window?
    If you can't find a final resolution, an alternative would be to place a LinktoAction on your web dynpro application somewhere that makes sense which would close the window for you.
    We do this on Sucess Message Views...
    You can simply add the link to action to the screen, and in the event handler use
       data : l_view_cntr type ref to if_wd_view_controller,
           l_win_cntr  type ref to if_wd_window_controller,
           l_window    type ref to if_wd_window,
           l_parameter_list  type wdr_event_parameter_list,
           l_parameter       type   wdr_event_parameter,
           l_val type ref to data.
    field-symbols <fs> type any.
    l_view_cntr = wd_this->wd_get_api( ).
    l_win_cntr  = l_view_cntr->get_embedding_window_ctlr( ).
    l_parameter-name = 'CLOSE_WINDOW'.
    create data l_val type c.
    assign l_val->* to <fs>.
    <fs> = 'X'.
    l_parameter-value = l_val.
    insert l_parameter into table l_parameter_list.
    l_win_cntr->if_wd_view_controller~fire_plug(
    exporting plug_name = 'EXIT_PLUG'
               parameters = l_parameter_list ).
    Make sure you have an Exit plug on your Window with Plug Type EXIT.

  • Dynamic message with Alert popup window?

    I'm using the simplest form of Alert popup window. Is there a way I can put a dynamic alert message in the window? For example,
    the Alert shows the "XYZ" at beginning, and then change to "ABC" by an event before the OK button is clicked.

    First you need to create a refernce to the Alert window.
    alert  = Alert.show("Hello");
    To change the text
    alert.mx_internal::alertForm.mx_internal::textField.text = "New Text";
    ( had to use mx_internals because the following code is not updating the text alert.text = "New text"; )

  • Close popup window and refresh the parent window

    Hello,
    I have a button in a normal report, when clicked opens up an popup window which is a form containing some items and here in this form (i have some editable text items) I make some changes and click on the apply changes button -- this should update the form, close the popup window and should refresh the parent window.
    can anyone please help me out with this issue.
    Thanks,
    Orton

    you have your popup window. When they apply the changes you want it to close the window, right?
    Modify the button (save, apply changes) and give it url redirect to the custom function you create (See below): javascript:saveChanges();
    in the page header, add a new function:
    <script type="text/javascript">
    function saveChanges(){
         doSubmit('SAVE');//this is the line to save the current form on the popup window. (This assumes SAVE is the request value that should udpate the db)
         window.close();//close the popup window
         window.opener.doSubmit('REFRESH');//call doSubmit function on the parent window to cause the page to refresh.
    </script>

  • Rendering popup windows in JSF form on demand

    Hello,
    i have a form with a RichFaces menu bar at the top and several other UI components , eg. commandButtons. When a <rich:menuItem> or a <a4j:commandButton> component is clicked, a hidden modal popup window appears for user interaction. At the moment, all JSF files associated with the NetBeans project are downloaded to the client machine.
    In order to reduce network traffic for low bandwidth internet connections, i would like to only download the popup window JSF files from the server to the client if the relevant form UI component is clicked.
    Would anyone suggest a possible method to achieve this please?
    Thanks,
    Mark Weatherill.

    you can open a popup page from commandButton like,
    onclick="window.open('http://www.myapp.com/faces/popup.jsp'); return false;"Use the same faces-managed-bean to input data (on popup page and on the main page). Before closing the popup page you can submit its form to update the model. And after closing the popup page you can refresh the main page. Beware that you might have problems with refreshing in https connection (getting "access is denied" exceptions in jscript)

  • Generating a Popup window based on BPM Form outcome

    Hi All,
    I'm currently working with a BPM workflow which is going through 6 levels.
    Each level having there own forms and each form having different customized buttons to flow the task to different paths. e.g; ASSIGN, CANCEL, RECHECK etc.
    These buttons are the outcomes of the Human Task. (I did not add 'Button' from components)
    I have a requirement to generate a popup window based on some of the button actions.
    This popup will have only two options.
    e.g -
    Popup window will ask 'Are you sure to proceed ?' then there should be two buttons to select Yes or No.
    'Yes' will send the instance to next stage and 'No' will remain the instance in the same user inbox.
    How do I do this ???
    Thanks,
    Nir

    Hi All,
    I found the way to generate the popup.
    But now my problem is how can I navigate( Complete the task from that level) the task from the Inbox after clicking OK button.
    There are several customized buttons in the form (e.g 'APPROVE', 'RECHECK' , 'CANCEL' etc.)
    I want to make the instance navigate to next level based on the button clicked.
    e.g.
    1. User will click on the 'CANCEL' button
    2. Popup will display to confirm the action
    3. When user click OK in the popup window task should be 'CANCELLED'
    (My problem is how to catch the button action he has performed )
    Any Ideas ??
    Thanks,
    Nir

  • To Open 11g Forms output on a seperate popup window

    Hi,
    Anybody help me, how to Open 11g forms output on a seperate popup window. Now it is comming in browser itself.
    regards
    Ahamed Rafeeque CH

    This is controlled in the Forms Services configuration. You will need to modify the "separateFrame" configuration setting using the WebLogic Server interface. You could also modify the formsweb.cfg using a standard text editor, but it is not recommended. The default value for separateFrame is FALSE. By setting the value to TRUE it instructs Forms Services to use a seperate browser window for the Java Applet.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Popup window for tabular form row edition

    To edit existing or new rows in a tabular form (page 1), I would like to open a popup window (page 2) with fields mirroring original tabular form fields. So, some basic data can be viewed/typed in the tabular form and the whole of the record data are viewed/typed on a separate popup form.
    On opening popup, I pass a tabular form's current line number (filled with up to three zeros on the left).
    When the user clicks on OK button on popup page, data will be put to the corresponding tabular form row. That should allow me to get /set tab form data from popup using following syntax:
    opener.document.getElementById('f04_' + line).value
    However, when I call data-initialization javascript function on onload of the popup form, popup fields to be filled are not rendered yet. At which point (and how) could I call this javascript initialization function?
    Another question. With Firebug Inspector, I see that right in front of each tab form data tag, there is a "label" tag with the name of the column as it was defined in report attributes. As long as I have a information, opener.document.getElementById, what HTML/Javascript syntax should I use to get to this label tag?
    Igor

    OK, the first part of question is OK now. Simply, I was putting a javascript code calling my initialization predure in the HTML Body Attribute section of the page, instead of simply writing there: onload="initFunction();"
    The second one stands still: once I have a tabular form's element id like f20_0003, how can I get to the symbolic name, e.g., "FIRST_NAME", that is in the label tag in the same table cell?

  • Get values in a popup window into the livecycle forms

    Hi,
    Is it possible to get the values in a popup window in a livecycle form or assign the values in a poup window into livecycle form?
    Thanks

    Hi,
    There is a method in the Acrobat SDK called execDialog that can be called from within an XFA Form. You can pass values to and from a dialog using this method. It is a bit involved and therefore I strongly recommend AcroDialog, which is a plugin for Acrobat from Windjack Solutions (http://windjack.com/product/acrodialogs/).
    You can use this graphical interface to create dialogs and hten copy the script into your XFA Form.
    Hope that helps,
    Niall

  • Need to create a empty form on popup window

    Hi i have 3 master and details tables each table have create button when i click on create new popup window should come with empty data.
    i achived with the one table using popupFetchListener method in the backing bean as
    public void createHistoryRecord(PopupFetchEvent popupFetchEvent) {
    // Add event code here...
    System.out.println("Action event for history");
    try{
    AdfFacesContext adf = AdfFacesContext.getCurrentInstance();
    BindingContainer bc = getBindings();
    oracle.binding.OperationBinding opb = bc.getOperationBinding("CreateInsert");
    opb.execute();
    // am.insertData();
    }catch(Exception e){
    e.printStackTrace();
    but when i tried the same code with 2nd table create button then the 1st table row is adding and i am getting error like FirstActivationDate and all are null these fileds are mandatory fields in 1st table.
    can any one help me in this.

    Sireesha thanks for your reply,
    i have taken 2nd Vo iterator also like
    popup code:
    <af:popup binding="#{backingBeanScope.backing_app_AccountsPage.popup11}"
    id="popup11" popupFetchListener="#{backingBeanScope.backing_app_AccountsPage.createAddressRow}">
    Bean method code:
    try{
    AdfFacesContext adf = AdfFacesContext.getCurrentInstance();
    BindingContainer bc = getBindings();
    System.out.println("Binding name is: "+bc.getName());
    oracle.binding.OperationBinding opb = bc.getOperationBinding("CreateInsert1");//Here i have taken the page definition id
    opb.execute();
    }catch(Exception e){
    e.printStackTrace();
    Page definition:
    <action IterBinding="CmSubscriberAddressesViewIterator" id="CreateInsert1"
    RequiresUpdateModel="true" Action="createInsertRow"/>
    Still i am getting the same error.
    Edited by: user5802014 on Sep 4, 2009 3:49 PM

  • In a multiple monitor situation, how do I get popup windows to open on the same monitor as the parent application is displayed.

    I have two monitors. I have an application that I run all day, displayed on my secondary monitor. Whenever a popup windows is launched form that application, it always opens on the primary monitor. Very annoying. Any way to get the popup to launch in on the same monitor as the parent application?

    Did you solve this problem ?

  • RE: Getting multiple values from more than one multiple select popup window

    I have a button on a JSP of mine that when clicked creates a popup window (right now it is called popup.html) with a multiple select menu.
    My question is how do I get all the values selected from the menu into my JSP (sample.jsp) so that I can set each of the values for my bean.
    The other problem is that I have more than one select multiple menu.
    Please help if you can. Any advice or suggestions here would be greatly appreciated!
    Thank you!

    I realize that I can use request.getParameterValues to get the values selected from my html because I am passing them to the hidden inputs I have and then using the request.getParameterValues to get each of the values.
    MY PROBLEM IS WHAT IF I HAVE 4 MULTIPLE SELECTS??? How can I use the same html popup menu to get the values from the 4 different multiple selects????
    I look forward to your response.
    This code is from my JSP:
    <INPUT TYPE="TEXT" NAME="Field1" SIZE="15">
    <INPUT TYPE="hidden" name="F1Rad1">
    <INPUT TYPE="hidden" name="Permission">
    <input type=button name=choice onClick="window.open('optionPicker.html','popuppage','width=250,height=100');" value="Options"></TD>
    Here is my optionPicker.html code for the pop up menu:
    <html>
    <head>
    <script language="JavaScript">
    function sendValue(s)
    var boxSize= s.options[0].value;
    var restrict     = s.options[1].value;
    window.opener.document.addNewForm.F1Rad1.value = boxSize;
    window.opener.document.addNewForm.Permission.value = restrict;
    window.close();
    </script>
    </head>
    <body>
    <center>
    <form name=selectform>
    <select multiple name=selectmenu size="2">
    <option value="large">Large Text Input Area
    <option value="restrict">Restricted Access
    </select>
    <p></p>
    <input type=button value="Select Option(s) For Field" onClick="sendValue(this.form.selectmenu);">
    </form>
    </center>
    </body>
    </html>

Maybe you are looking for

  • Office 2013 PACKAGEGUID

    Hi everyone, I am having trouble generating an Office 2013 package with a different package GUID.  Here is my XML <Configuration> <Add SourcePath="C:\officeproplus\" OfficeClientEdition="32" > <Product ID="ProPlusVolume"> <Language ID="en-us" /> </Pr

  • Help  reg Down Payment - Urgent

    When i put down payment here in VA01 billing plan (WBS element linked) For e.g., PR00 = Rs. 1,00,000 <b>Billing Plan</b> 30%, 40% and remaining after the receipt of material at client's site but commercial and excise invoice will go with the material

  • Adobe xi standard won't download from store

    purchased adobe xi standard  (upgrade). I'm trying to download it to a new win7 pc. from store, I follow directions, click download but it hangs and never sarts the download. I have downloaded adobe flash, the freeadove reader with no problem I tried

  • Icloud is not giving me a sign out option on my iphone

    what do i do

  • Drivers for presario C 700 with windows 7 home premium

    hi there, I´m having some issues with my notebook sound ( like a weird sound buss i think could be the drivers) I do upgrade the OS to windows 7 home premium; originally this system came with vista, HP does not have drivers for this notebook availabl