Modal panel refreshing the parent

Hi ,
I am facing a strange issue.
I have a parent page and a modal panel opening from the parent. The modal panel displays a data table with pagination.
When a move to each page(by clicking the page number) of the data table, the parent page getting refreshed and the it gets more darker and darker!!!!(I believe because of the modal nature of the child panel).
I have included the modal panel as a jsp include
<jsp:include flush="true" page="/jsf/accountGroupLov.jsp"/>
Inside accountGroupLov.jsp , i have a dialog panel, where i render the data table.
<p:dialog  header="#{finmsg.accountGroup_search}" modal="true" width="400px" rendered="#{accountGrpLovHandlerBean.lovVisible}"
     Where I am using primefaces dialog component.
I dont want the parent page to be refreshed each time I navigate to different pages of the data table in the modal panel.
Can anybody give a clue?
Thanks in advance.
Shaiju

Hi,
I have a similar scenario where I want to insert the data to a table and then close the popup window on a 'Apply & Return' button.
On the button I have set target as URL and URL Target as javascript:passBack2();
passBack2() is the call to java script I am using from Denes Kubicek application.
<script language="JavaScript">
   function passBack2()
      doSubmit();window.opener.doSubmit();window.close();
</script>I have PL/SQL process(After Submit) which triggers on this button to insert the data into the table.
But when I invoke the popup and enter the data and click on 'Apply & Return', it navigates back to the calling page and refreshes it without executing the PL/SQL process.
Any thoughts on this please.
Thanks,
Raj.

Similar Messages

  • Modal dialog - refresh the parent page on close

    Hi:
    Using Apex 4.02
    I have followied Havard Kristiansen's modal dialog example.
    I have everyting working, but I have a requreimet to refresh the entire page (parent page) on the close of the modal page.
    I have tried quite a few things in dynamic actions on the parent page etc, but nothing is working.
    How can I get the parent page to fully refresh when the modal dialog is submitted and closed.
    Your help would be most appreciated.
    Regards,
    Bruce

    Hi:
    Please - still waiting for help.
    Here is what I have tired:
    - dynamic action on iframe for page unload to call window.opener.doSubmit() and parent.doSubmit();
    - dynamic action on button on ifreame same as above
    - branch (plsql) process to call above
    None of these worked. The modal dialog closes but the parent page dos not refesh.
    I can refresh a report region, but the problem is that the region I want to actually refresh is conditional and is not displayed when you first open the modal dialog. Hence, it does not appear on the return even though the condition is now true.
    Any help would be appreciated please!
    Regards,
    Bruce

  • Problem refreshing the parent page when closing a modal window.

    I have page that opens a modal window from a report link column. In the modal window I want to be able to make my changes and press an Apply button so that the modal window is closed and the parent page is refreshed to show the modified details in the report. In Firefox all works well but in IE I get the error message ‘Window.opener.location is null or not an object’ .
    When I comment out window.opener.location.href=window.opener.location.href; the modal window closes without error but I want to refresh the parent page with changes made in the modal window.
    I’m afraid my java script is very limited (the code is based on other peoples examples.)
    Parent Page I call this function from a report link column to display a modal window. Sets the hidden SAVE_STATUS field in destination page to ‘N’
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {
    window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px"); }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    Destination page (modal window)
    HTML Header.
    The function closeWindow should refresh the parent page and close the modal window.
    <base target=_self>
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function closeWindow() {
    if ( document.getElementById("SAVE_STATUS").value == 'Y' )
    window.opener.location.href=window.opener.location.href;
    window.close();
    //-->
    </script>
    Html Body attribute.
    onLoad="closeWindow();"
    P_UPDATE_DATE process called from the Apply changes button. Sets the SAVE_STATUS flag to ‘Y’ for the onload in the html body.
    UPDATE event
    SET event_date = :P5001_EVENT_DATE
    WHERE contract_reference = :P330_EVD_CONTRACT
    AND event_number = :P330_EVD_EVENT_NUMBER;
    :SAVE_STATUS := 'Y';
    Thanks in advance, I will have a look when back in the office on Monday.
    Cheers Pete

    Hi Chris,
    Thanks for your help. I think I've sorted it using your first suggestion doing a refresh in the parent page, I just didn't know how at the time.
    What I've got in the parent window after the call to the modal window is the reload window.location.reload(); and in the modal window I close it using window.close(); The down side being the refresh happens if I use my 'Apply changes' or 'Cancel' button but I can live with that for now.
    It seems to work in IE and firefox but as I say most of what I'm doing is cobbling together using other peoples code without really understanding exactly what it does. Anyway thanks for your help, sound like I should look into JQUERY when I have time.
    Thanks Pete
    Parent window call to modal
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {  window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px");                                          }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    window.location.reload();
    Modal Window Close.
    window.close();

  • Modal popup window refresh the parent (calling) window/view

    I have a modal popup window that is adding detail records.  When this window is closed via the Hide method in my controller I would like to refresh the parent (calling) window/view.
    What is the best way to do this?
    Regards,
    Diane

    Here's my process.....
    2-windows & 3 views
    Window 1 - Selection View and Detail View
    Window 2 - Add View (used as a modal popup window called by a button click on the detail view)
    Selection View has all the options for obtaining a list of data for the detail view.  The detail view has an Add button.  Component controller has the hide method and access to the other components that do the update/query methods. On the detail view the user can click Add and a popup modal window shows.  User enters data and clicks either the add or cancel button.  The Detail view needs to refresh to show the additional data that has been added by the modal window.  There are calcuated values in the detail view from a supply function.  This function is not running and the values are not changed.
    What should be put in the hide method that will cause the detail view to obtain new data and supply the calculated values?  If I was using the Add view as part of the same window as the detail/selection views I'd just put in a navigation link between the detail and add views and fire the plug.  I like the idea of the popup window so I'd like to get this to work.
    I put the wdContext.initialize() in the hide method - which yes - caused the detail view to run - however the context lost all the key values so I received a data not found.  I then tried to initialize those nodes that did not contain the key values but the detail view did not display new values.
    Thanks for any ideas.....Diane
    Edited by: Diane Fuller on Jan 8, 2009 6:48 AM

  • 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>

  • Create pop-up page, submit it and refresh the "parent" one.

    Hi, I have a page where I have region with the report where I display pictures associated with the record. What I would like to have is enable user to click a button which would open pop-up page to submit new picture and after submission region would be refreshed showing new picture with description.
    Is this possible?
    Thanks
    Robert

    I still don't know if this is possible.
    To create thubnails create report with the link to the pictures using code below
    decode(nvl(dbms_lob.getlength(photo.thumb),0),0,null,'<img src="'||apex_util.get_blob_file_src('P35_PHOTO',photo.record_id)||'" width="48" />') "RPA_THUMB"
    photo.thumb is where you store thumb in the back end
    P35_PHOTO item used to upload photo
    photo.record_id is the photo id
    Robert

  • Skip validation while opening modal panel

    Hi,
    I have a form where it got an icon to open an LOV(List Of Values) panel.The LOV panel is nothing but a modal panel.
    The original form(the parent form ) got couple of inputText with required="true" validation. To open the LOV panel i.e the modal panel, I am using a h:commandLink
    <h:commandButton title="Search" value="Search" action="#{accountGrpLovHandlerBean.processLov}"  image="/images/Search-32.png" >
                                  <f:setPropertyActionListener target="#{accountGrpLovHandlerBean.backingBean}" value="accntHeadTemplateBean" />
                                  <f:setPropertyActionListener target="#{accountGrpLovHandlerBean.backingBeanAttribute}" value="accountHeadTemplate.accntGrp" />
                                  <f:setPropertyActionListener target="#{accountGrpLovHandlerBean.lovVisible}" value="true" />
                             </h:commandButton> Now the issue is , the moment I click on this button, the required="true" validation for the inputTextBox get fired and stays back in the page,with validation error messages.
    If I enter some value in the text box , the modal panels shows up ,as the validation is passed this time.
    I have tried using a4j:commanButton also , but without any luck.
    Can anybody suggest ??
    Thanks in advance.
    Shaiju

    Add immediate="true" to your command button to escape validation phase

  • How to Refresh the portal

    Hi All,
    i have a requirement to replace the existing role to the user through webdynpro dynamically based on user input.
    This i am able to do successfuly but here i am facing the problem. the added role is not displaying until unless clicking on rfresh button in browser.
    please let me know there is any way to rfresh the portal in browser through webdynpro java.
    Thanks & Regards,
    Bhargava Kumar.

    I did not expect that you are using portal navigation (navigation between two Ivews) as this information was not clear in your earlier posts.
    To achieve this (refreshing the parent ivew) in portal navigation (navigation between two Ivews):
    You need to raise an event in the button action of PDFIview as below:
    WDPortalEventing.fire ("urn:com.sap.tc.webdynpro.test.portal", 
                           "TestEvent", 
                           "AParameter");
    You need to subscribe the same event in parent ivew:
    WDPortalEventing.subscribe ("urn:com.sap.tc.webdynpro.test.portal", 
                                "TestEvent", 
                                wdThis.wdGetTestEventAction());
    in TestEventAction you can write the code to refresh the table in Parent IView
    Go through this below link for more help.
    http://help.sap.com/saphelp_nwce10/helpdata/en/d3/3857422d095542e10000000a1550b0/content.htm
    Regards
    Vijay

  • Refreshing the panels when new content added?

    Hey, guys. My first post here; hope I'm not too much of a JNewbie for you. :)
    I'm getting my feet wet in Swing, working on an invoice program for work. I want it to look like a regular invoice, with fields for SKU, description, cost per unit, units, and total per line item. Right now, I have those five fields in a Jpanel that I add to the bottom of the layout.
    The problem is that I need the ability to go to File => Add New Item... and have another JPanel with those five fields add to the bottom so a 2nd item can be added to the form below the first. I tried making a function that adds them to the panel, using the same type of syntax that the generated code (using a form builder in NetBeans) did. I don't see the lines get added.
    My thought is that there is some function I need to call to redraw or refresh the panel so that the new components start drawing. However, my Great Javadoc Adventure has turned up no clues.
    Can anyone please give me a hand with making this happen, or at the least coming up with an alternate solution that will achieve similar results?
    Thanks much.
    Jaeden Stormes
    [email protected]

    I tried revalidate() , but no change.
    Here's the function I'm using to try to add the item...
    private void NewLineItem()
    javax.swing.JPanel jLine = new javax.swing.JPanel();
    jLine.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
    jItemCode.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    jLine.add(jItemCode, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 110, -1));
    jCourseDelivery.setHorizontalAlignment(javax.swing.JTextField.LEFT);
    jLine.add(jCourseDelivery, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 0, 240, -1));
    jItemQuantity.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    jLine.add(jItemQuantity, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 0, 110, -1));
    jItemRate.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    jLine.add(jItemRate, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 0, 100, -1));
    jItemAmount.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    jLine.add(jItemAmount, new org.netbeans.lib.awtextra.AbsoluteConstraints(560, 0, 100, -1));
    jLineItemSection.add(jLine);
    jLineItemSection.revalidate();
    pack();
    JLineItemSection is a JPanel inside my frame.
    Any suggestions? I think the way I am using the AbsoluteContraints is screwed up, as I'm having a lot of trouble with the layouts in general. The form editor in NetBeans (at least, the version in 3.6) needs a LOT of work.

  • How can I make the spry accordion remember the panel open when I refresh the page or jump to a new page?

    How can I make the spry accordion remember the panel open
    when I refresh the page or jump to a new page?
    I am using the accordion feature on all my pages as a
    navigation aid. It has three panels. When you refresh the page the
    panel goes back to the default pane... Is there a way of
    controlling this so that the browser can remember the pane that is
    open (say set a variable, cookie, other?)

    Look for "Set the default open panel" on the following page:
    http://labs.adobe.com/technologies/spry/articles/accordion_overview/index.html
    Keep in mind you would need to change that bit of code on
    every page. The only way to do it more dynamically would be to
    include a custom javascript or PHP/ASP style script in order to
    change the value.

  • How to refresh the panel's display in listener?

    I have a Jcombobox and a panel(square,background color:white). I want user to choose the panel's size from the combobox and thus change the panel's display. However, when I choose a value from combobox, the panel's size DOES change, but the display cannot be rerfreshed realtimely. It still display the panel by previous size. If I minimize the whole window and restore, then the panel gets refreshed, displaying by new size.
    Can anybody tell me how to refresh the panel's display dynamically? thank you a lot.
    sraiper

    if we bounce the listener the connections to other might be lost.NO!
    The listener contacts the DB to establish the initial connection between client & DB.
    After the connection between DB & client has started, the listener has NO involvement between DB & client.
    Stopping the listener has NO impact on existing sessions.
    Edited by: sb92075 on Jul 28, 2009 4:37 PM

  • Skillbuilder Modal Page needs to execute a process on the parent page

    Hi,
    I am using apex 4.1 and theme 2. Also I am using the Skillbuilder modal page plugin.
    I have a modal page with a textbox and a button. On click of this button i want to pass the textbox value to the parent page and execute a process on the parent page.
    I dont want to hardcode the page numbers here as this same popup page will be used in all the pages in the application. It is to capture the comments before submit on each page. Hence it should just pass the values to the page that called this modal window.
    Any help greatly appreciated.
    Thanks in advance,
    DS

    Take a look at these:
    {thread:id=2420256}
    {thread:id=2407235}
    Basically: define a dynamic action on your parent page to act on the close event of the modal page. On your modal page, use the close method of the plugin (and possibly provide a return value)
    From documentation
    Advanced Usage
    Methods
    Close*
    The close method can be used to close the modal dialog programmatically. The method accepts an optional parameter which can be anything. That value can then be >accessed in Dynamic Actions that respond to any of the close events of the plug-in. The syntax to access the value is: this.data.modalPageCloseValue. To access the method >from within the child page, see the third example.
    $(document).apex_modal_page('close');
    $(document).apex_modal_page('close', someVariable);
    parent.$(parent.document).apex_modal_page('close');
    Events
    Manual Close
    The Manual Close event fires when the the modal dialog is closed by either the end user or programmatically by the close method. If the close method was used it’s possible >that an optional value was passed to the close method which is exposed in Dynamic Actions as this.data.modalPageCloseValue.
    Close
    The Close event fires whenever the modal dialog is closed, whether automatically or manually.

  • Refresh the Panel or Scrollpane in a frame?

    When I open a frame the panel in the scrollpane is transparant . but if you scroll it will fill with the color I gave. It will also fill if I minimalize and then maximalize.
    I tried validate, update , repaint

    Hey, well I've had the same question. repaint() doesn't seem to work. Anyway, I've found a trick that works sometimes.
    JPanel oustidePane = new JPanel(new BorderLayout());
    JPanel labelPane = new JPanel();
    label = new JLabel(" ");
    label.setPreferredSize(new Dimension(10,10));
    //or smaller, i actually didn't set a size
    labelPane.add(label);
    outsidePane.add(labelPane, BorderLayout.SOUTH)
    ousidePanel.add(yourPanelorScrollPanel, BorderLayout.CENTER);
    //put this somewhere where you can access label from
    //other ods
    JLabel label;
    then add this ousidePanel where you would have added your panel.
    when you want to refresh your window, try something like this:
    void refresh()
    if(label.getText() == " ")
    label.setText(" "); //two spaces this time
    else
    label.setText(" "); // back to one space
    let me know if this works for you

  • Refresh the PanelGrid in  page not the whole page ...

    Hi friends,
    I have two frames in one page. Those are Left.faces and Right.faces. In the left.faces i have pangelGrid and stackbarGroup under stackbar. In the Right.faces i am having only dropDownList and command button.
    Here my problem is , First i am selecting the value from the drop down list and click the command button in the Right.faces. That action should be reflected on Left.faces that means, selected value is captured by element current Reference Month which is in panel grid through refreshing the page Left.faces. But here i used stackbarGroup under the panel grid. While refreshing the page Left.faces the stackbargroup is compressed. I should touch only the panel grid not the stack bar group.
    My code: Left.faces
    ==============
    <f:view>
    <h:form>
    <h:panelGrid columns="2" styleClass="leftPanelTitle" cellspacing="5" style="width:100%" id="panelGrid" >
    <h:outputText value="*Current Reference Month : "* />
    <h:outputText value="*#{bottom_sess.displayMonthRef}*" style="font-weight:normal"/>
    </h:panelGrid>
    <ig:stackbar groupContentStyleClass="csStackbarGroupContent" groupExpandedStyleClass="csStackbarGroupExpanded" groupExpandedHoverStyleClass="csStackbarGroupExpandedHover" groupCollapsedStyleClass="csStackbarGroup" groupCollapsedHoverStyleClass ="csStackbarGroupHover" >
    <ig:stackbarGroup text="Search Provision" rendered="#{not user_login.hideUserTeam}" >
    <ig:link target="right" value="#{msg.search}" action="#{provision_search_action.clearSearch}" ></ig:link>
    </ig:stackbarGroup>
    <ig:stackbarGroup text="Add Provision" rendered="#{not user_login.hideUserTeam}" >
    <ig:link target="right" value="#{msg.provision_book}" action="#{provision_book.clear}"></ig:link>
    <ig:link target="right" value="#{msg.provision_trade}" action="#{provision_trade.clear}"></ig:link>
    <ig:link target="right" value="#{msg.provision_atom}" action="#{provision_atomCode.clear}"></ig:link>
    </ig:stackbarGroup>
    </ig:stackbar>
    Right.faces
    ==========
         <f:view>
    <h:form id="form1" >
    <ig:dropDownList id="selectMonthEndDropDown" dataSource="#{select_month.selectMonthEndList}"                     binding="#{select_month.selectMonthEndDropDown}" />
    <h:commandButton type="submit" value="#{msg.change_month}" actionListener="#{select_month.addSession}" onclick="refreshPage()"/ >
    </h:form>
    </f:view>
    Script:
    =====
    <script LANGUAGE="JavaScript">
    function *refreshPage()*
    *parent.frames["left"].location.href='Left.faces'* // page refresh
    </script>
    In Left.faces i got the value in the panel grid's component from the Right.faces . But stack bar group is compressed in Left.faces.
    I am waiting for earlier reply.

    Hi Zack,
    Try the following under Report options.
    1. Clear the check box of "Verify Stored Procedures on First Refresh" in the Main report.
    2. Select the check box of "Verify on First Refresh" in  the sub report.
    Hope this helps.

  • Refreshing the Data Source View in Analysis Services

    I have added columns to the SQL Database table that is used as a dimension in an Analysis Services Cube.  The new columns will be used as additional Property Fields for the dimension.  When I attempted to refresh the Data Source view so that the additional columns are present, I am given the following error:
    System.Data
    Property not accessible because 'Parent Columns and Child Columns don't have type-matching columns'
    I have done nothing to the columns used for the parent of child and the error message provides nothing to gon on. Does anyone have any ideas on this?
    Gary

    Olga,
    Thanks for your response.  I will try and answer your questions
    1) I have not tried removing the columns yet.  I will try that this afternoon but have limited hope.  The two columns I added are simple text columns that will be used as attributes in the dimension.  I have made no change to the parent or child columns.
    2) The table I modified is the source table for a parent-child dimension.
    3) The reference to the "check list" does not take me to any kind of check list.
    4) The parent-child dimensions I am trying to modify have been in use for months and the parent and child columns do have the dame data types.
    5) I have also check the data types between the dimension table and the fact table.  they use the same data types (small int).
    6) I have not made a collection for the parent key, it is a single column. The remainder of your last paragraph is not clear to me. Can you give me an example.
    I am fairly inexperienced with Analysis Services, please talk slow and use small words  :-)
    Thanks again for your help!
    Gary

Maybe you are looking for

  • High def on my iMac, but low quality on MacBook :(

    I did a screen capture and exported it as HD. Imported it into iMovie for some editing and then exported as HD. Looks crystal clear on my iMac and really low quality on my MacBook Pro. Both computers are new within the year, not old. These are for my

  • Missing Java Files in Photoshop cs3

    DOes anyone now how to fix CS3 problems with photoshop? I can't use HDR merge or Photomerge due to "java script file was missing" I am currently on Leopard 10.5.8 I've seen much about how the updates from apple may be the problem, but can't find any

  • 7.1 speakers and center speaker identification

    I am trying to set up my speaker system again after moving despite the difference of wattage between the two front speakers and the center speakers I can not tell them apart for proper speaker configuration. How can I tell the difference between the

  • Missing ConnectionString to SAP/R3

    Dear experts, I'm stuck and kindly asking for a little hint. After installing EP6.0 SP9 on a J2EE engine and creating a system in the system landscape I try to connect via connector to a SAP/R3 ABAP system but I don't know the connection string. Is i

  • Elements Premiere 12

    Kann ich mit Elements Premiere 12 über Pinnacle Studio 500-USB alte SVHS-Videos überspielen? Message was edited by: GHz