Refresh First page after returning from a framed pop-up window

HI Can anyone help me on this technical problem.
I have got one mainpage and from there i'm calling a popup with two frames (left, right). At frame right i'm populating the tableview.
So when i submit(button) in tableview(right), the table contents has to be replicated in the first page and the popup has to be closed. So far it has be done successfully.
The problem is when i return to the first page the page is not getting <b> refreshed automatically</b>. FYI, i'm not using mvc for performance reasons.
So i need your help on how to refresh the first page, after control passes from popup.
Here is the code, that calls the popup window
winvar=window.open("organization.htm", 'main','height=450,width=650,status=yes,scrollbars=yes,toolbar=no,resizable=yes');

Hi Craig & Raja,
Let me tell thanks for your response. But your valuable solutions are not working for me. Please, check this code and please let me know that any thing went wrong.
Here is the code
My main page is progress.htm
============================
<script language = "javascript">
    function openOrgTree(){      
       var winvar;
       winvar=window.open("organization.htm", '<b>Main</b>','height=450,width=650,status=yes,scrollbars=yes,toolbar=no,resizable=yes');
  </script>
<htmlb:inputField id          = "InputOrgPlan"
                        showHelp    = "X"
                        onValueHelp = "javascript:openOrgTree()" />
      <% if application->i_desc is not initial.%>
      <htmlb:tableView id              = "tvX"
                       headerVisible   = "false"
                       design          = "alternating"
                       visibleRowCount = "3"
                       fillUpEmptyRows = "true"
                       columnWrapping  = "false"
                       onHeaderClick   = "MyEventHeaderClick"
                       onRowSelection  = "MyEventRowSelection"
                       keyColumn       = "Text"
                       table           = "<%= application->i_desc %>"
                       iterator        = "<%= iterate %>" />
      <% endif. %>
      </td></tr>
organization.htm (is the frames container)
=========================================
  <!-- frames -->
<frameset  rows="110%,*">
    <frameset  cols="40%,*" >
        <frame name="left" src="tree.htm" marginwidth="0" marginheight="0" scrolling="No" frameborder="0">
        <frame name="right" src="table.htm" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0">
table.htm (right frame)
==========================
   function callSubmit()
     alert(parent.window.name);  
// displays the name as "<b>Main</b>" which i gave at the time opening oraganization.htm
//        parent.window.opener.refresh();
// window.opener.location.href = window.opener.location.href ;
         window.opener.refresh();
         parent.close(); // to close the popup
// all of the above are not working
   </script>
  <htmlb:page onLoad = "callSubmit()">
<htmlb:button id            = "submitbutton"
                    onClick       = "myButtonClick"
                    onClientClick = "callSubmit()"
                    width         = "10"
                    text          = "Submit" />
i need onClick to populate the internal table and onClientClick to refresh the opener.
if event->id = 'submitbutton'.
      refresh application->i_desc.
      application->i_desc = i_desc.
Regards
Swaroop

Similar Messages

  • Best way to refresh page after returning from task flow?

    Hello -
    (Using jdev 11g release 1)
    What is the best way to refresh data in a page after navigating to and returning from a task flow with an isolated data control scope where that data is changed and commited to the database?
    I have 2 bounded task flows: list-records-tf and edit-record-tf
    Both use page fragments
    list-records-tf has a list.jsff fragment and a task flow call to edit-record-tf
    The list.jsff page has a table of records that a user can click on and a button which, when pressed, will pass control to the edit-record-tf call. (There are also set property listeners on the button to set values in the request that are used as parameters to edit-record-tf.)
    The edit-record-tf always begins a new transaction and does not share data controls with the calling task flow. It consists of an application module call to set up the model according to the parameters passed in (edit record X or create new record Y or...etc.), a page fragment with a form to allow users to edit the record, and 2 different task flow returns for saving/cancelling the transaction.
    Back to the question - when I change a record in the edit page, the changes do not show up on the list page until I requery the data set. What is the best way to get the list page to refresh itself automatically upon return from the edit-record-tf?
    (If I ran the edit task flow in a popup dialog I could just use the return listener on the command component that launched the popup. But I don't want to run this in a dialog.)
    Thank you for reading my question.

    What if you have the bean which has refresh method as TF param? Call that method after you save the data. or use contextual event.

  • Refresh ALV Report after return from dialog screen

    Hi All,
    I have developed an alv report which lists new products, when user clicks on a product it will take to custom dialog screen where user makes neccessary changes. Once the changes are done user clicks back the control comes back to the ALV report.
    My question is when they come back to ALV report it should refresh and list the new products. Basically I want to know is it possible to refresh the report when control is coming back from dialog screen to ALV report.
    Pls provide me a best way to handle this scenario.
    Regards,
    Anand

    Hi Archna
    This is the code I am using
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = v_repid
          i_callback_user_command = 'USER_COMMAND'
          i_callback_top_of_page  = 'TOP_OF_PAGE'
          i_grid_title            = i_title
          it_fieldcat             = it_fcat
          it_events               = v_events
          i_save                  = 'A'
        TABLES
          t_outtab                = it_alv_cvg.
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN '&IC1'.
          READ TABLE it_alv_map INTO wa_alv INDEX rs_selfield-tabindex.
          IF sy-subrc = 0.
            SET PARAMETER ID 'ZCR' FIELD wa_alv-product.
            CALL TRANSACTION 'ZSD_PRODUCT_DIV' AND SKIP FIRST SCREEN.
          ENDIF.
      ENDCASE.
    ENDFORM.   
    After it goes to dialog when I clcik back it comes  back to the alv report.
    Now can you Pls tell me where to use the refresh.
    Regards,
    Anand

  • Urgent-How to retain data in main page after returning from personalize pag

    Hi,
    i have a query,
    Like if I have a region 'CertificationRN' when I run the page a link stating “Personalize Table: (CertificationRN)” appears above the Region
    Now when I enter some data in this region, and then click on 'Personalize Table: (CertificationRN)’ link, personalize page appears.
    On personalize page when clicked on “Return to Application’ it returns to the previous page, but the data which I had entered in the region is lost.
    i.e. I get empty Textboxes as they where just after running the page.
    What should I do to retain the data in the region?
    Thanks & Regards
    Shilpa

    Shilpa in that case personlization links should not be shown to business users, using profile option
    1)Personalize Self-service Defn (FND_CUSTOM_OA_DEFINTION)
    2)FND: Personalization Region Link Enabled
    (FND_PERSONALIZATION_REGION_LINK_ENABLED)
    , then where does the question comes of them clicking personalize link.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • HT1365 How can I get my iPhone 4 to update my updates from my app store of it keeps telling me error 3150 or it tell me to refresh the page after updates and the updates are still there asking me to update them again

    How can I get my iPhone 4 to update my updates from my app store of it keeps telling me error 3150 or it tell me to refresh the page after updates and the updates are still there asking me to update them again?

    Make sure iTunes on the computer is logged into the account on the phone.
    Plug the iPhone in.
    In the popup window warning about wiping your phone, hit cancel.
    In the left pane of iTunes, the phone icon should be there.
    Right click on it, select transfer purchases.
    Note: this will only transfer music bought from iTunes. Not mp3's from amazon or ripped from CD's.

  • Unable to refresh parent swing  form components after returning from child

    Hi,
    Not able to refresh the parent swing form components after returning from the child form.
    I am having problem in setting/resettig values to the parant swing form components after returning from child form. In parent form, I am entering values in some of the fields and clicking on Search button in parent form which will open a child window with the search results in JTable. Now selecting a row and writing the selected data to an ArrayList and returning back to the parent. I am able to see the values in the ArrayList, but not able to set any value to any of the parent form components by using the formtextfield.setText("value").
    Thanks
    Yakshak

    create another project
    a frame with a formattedTextfiled and a button
    the button to open a child window
    in the child window use say a JTextField to simulate a search result (type in some dummy data)
    now add the arraylist code that produces the problem
    if this stripped-down version of your program has the same problem, post all of the stripped-down code,
    so we can see what you're doing.

  • How to automatically actualize UWL after return from WebDYNPRO?

    Hello,
    in the universal worklist (uwl) i have configured a workstep to open a Web Dynpro application instead of the SAP GUI. This works fine and i can process the Workflow.
    But after processing of workstep I returns to the UWL using
    WDPortalNavigation.navigateAbsolute(          "ROLES:portal_content/tm.eop.fd.eop_root/tm.eop.fd.content_root/tmcz.eop.fd.tmcz_root/tmcz.eop.fd.my_workspace/tmcz.eop.ro.my_workspace/my_workspace/tmcz.eop.iv.uwl",          WDPortalNavigationMode.SHOW_INPLACE,
                        (String) null,
                        (String) null,          WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
                        (String) null,
                        (String) null,
                        (String) null);
    In the UWL there is non relevant item (item that was processed in WebDynpro) and it angers users.
    It is possible to actualize UWL automatically after return from WebDYNPRO application? WebDYNPRO is opened in the same window and frame as UWL.
    Thanks for your help.
    Ondrej Lednicky

    Followed what vinay and Timo sugguested:
    One solution is to use a af:dialog in the popup where you define a dialogListener  to catch the outcome of the dialog and if it's OK you call your other method.
    I wrote method code in back bean like this:
        public void refreshBillFromDialog(DialogEvent dialogEvent) {
            // Add event code here...
            if (dialogEvent.equals(false)){
                return;
            AdfFacesContext adfFacesContext;
            adfFacesContext = AdfFacesContext.getCurrentInstance();
            adfFacesContext.addPartialTarget(Bill4NewReceiptPending);
            //actionEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
            BindingContainer bindings2 = getBindings();
            System.out.println(" refreshBillFromDialog:bindings2: "+bindings2);
            OperationBinding operationBinding2 = bindings2.getOperationBinding("ExecuteWithParams");
            Object result = operationBinding2.execute();
            if (!operationBinding2.getErrors().isEmpty()) {
                 return ;
    And it works: the adf table(Bill4NewReceiptPending) in the calling page will be refreshed after the dialog popup was closed!
    Thank you all!
    What's more, I found even if I use bounded workflow calling instead of using popup dialog calling, the  returnListener wasnot executed either.
    And there is still a issue in the popup Dialog: The strange behavior of checkbox selection, see the thread:
    Why the page cannot refresh correctly after making checkbox selection?
    I tried and put aside for some days, and have no idea yet.
    Can anyone give helps?
    Thanks!

  • My iphone 4S has problem in making and receiving the calls. While making the call , call fails and netwrok disappears. Like wise no voice is heard for incoming calls. This happened after return from the overseas travel.

    My iphone 4S has problem in making and receiving the calls. While making the call , call fails and netwrok disappears. Like wise no voice is heard for incoming calls. This happened after return from the overseas travel.

    Hello SamSax
    Check out the assist page below for troubleshooting call connectivity.
    Calls and connection issues
    http://www.apple.com/support/iphone/assistant/calls/
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Network issues after returning from sleep mode

    I'm noticing this issue on T440, Twists, T420s, whether it's Windows 8, Windows 8.1 or Windows 7.  Sometime around the end of last year and the beginning of this year, my users suddenly started reporting problems with the machines after returning from sleep mode.  The network adapter (whether plugged in or using wifi), would show limited connectivity and would not connect to the internet until the machine is rebooted.
    I've tried updating drivers, using system restores, disabling the network adapters from shutting down to conserve power, OS network diagnosis & network adapter resets, none of which has worked.  Hibernation is disabled on all machines.
    The only fix I have is to reinstall the OS over the top of the system and reinstall all updates.  Looking for help with this issue.
    Thanks!
    Solved!
    Go to Solution.

    Hi Mertz74,
    Thank you for replying us back!
    Please check with uninstalling power manger and reinstall it with latest driver.
    Download chipset driver from Lenovo drivers page and install it.
    Please check with above option to resolve the issue.
    Below is the link to enter the downloads page and download updates accordingly, please click on "Select Product" then in "QUICK PATH" enter the MTM no. select the exact model.
    http://support.lenovo.com/en_US/downloads/default.page#
    Hope this helps. Do post back if issue persists!
    Best regards.
    Hemanth Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How to keep the current http session after returning from external web site

    Hi,
    When I use the response.sendRedirect api to redirect the web page to the external payment site, after payment and return back to the current application, I found that the current http session is lost.
    How to keep the current http session after returning from external web site?
    Thanks

    You should make your sidebar1 and sidebar2 fixed positioned. Make your content DIV fluid.
    This should help you: http://www.glish.com/css/7.asp

  • Unable to  get the login page after upgrade from 11.5.10.2 to R12

    Hi ,
    We are unable to get the login page after upgrade from 11.5.10.2 to R12, all the services are up and running.
    Pls let me know if someone has come across this issue.
    Thanks&Regards,
    Apps DBA

    Hi ,
    After compile JSP files manually , now we are facing problem after logging.
    Error : You have encountered an unexpected error.
    Thanks&Regards,
    Apps DBA

  • Mouse stutter and UI unresponsiveness after returning from standby

    Hi guys, after upgrading to Leopard the mouse pointer on my 15" MBP stutters after returning from standby. Weird thing is that this happens only after it was in standby for awhile, maybe 5 to 10 minutes. If I return from standby after a few seconds the stutter does not happen. I can only resolve this with a restart. This did not happen in Tiger. Is there anyone else experiencing this?

    Well I had this problem. Did a fresh install of Leopard a week and a bit ago and it seemed to run much better. Set my machine up how I like it and it's back to how it was. I didn't setup my Dashboard right away so maybe your onto something. I'll have to try and force myself to not use it for a bit and see how it goes.
    We should collect a list of 3rd party widgets as I think initially with the default 4 on display it was fine.
    I've only got 4 other than the standard Apple supplied ones.
    - iStat Pro 4.2
    - TV Forecast 2.3
    - Amazon Album Art 2.12
    - Application Update 1.5.8
    Now both iStat Pro and TV Forecast claim to be Leopard compatible. Amazon Album Art also mentions improved Leopard support was added in version 2.11. Application Update doesn't claim to be but seems to work fine. However I think this was the last widget I added and a few days after the others. I think it was fine with the other three so I might try removing it and seeing what happens.
    Still I'd love to know what other Widgets you guys have. Maybe we all have the a similar one which we can narrow down to being the cause. Or maybe it's not 3rd party widgets at all but the Dashboard as a whole. Still I'm more likely to think it's a 3rd party widget.

  • Lose Wifi after return from in Mountain Lion

    Ever since I installed Mountain Lion on my 2011 27" iMac, I lose WiFi connection after returning from sleep and I Have to do a restart.  Not happy.

    http://osxdaily.com/2012/08/02/fix-os-x-mountain-lion-wireless-connection-proble ms/

  • Browser not connecting after returning from sleep, but email and imessage working fine

    My Browsers are not able to access the Internet after returning from sleep. This effects other browsers (Firefox & Chrome) as well. The connectivity from mail and iMessage is working fine. I am also hardwired and not using WiFi.

    I have the same problem since updating to Yosemite, works fine after restarting but once it goes in to sleep it affects email as well as browsers, I have a broadband connection. Also accessing the app store is hit and miss, it's either working or simply not not working.
    It also affects other devices trying to connect to the internet over wifi via the airport time capsule, the problems started after installing Yosemite.

  • Power manager crashes after returning from standby mode.

    I have a T400 2767 WU6 running Windows 7 Pro-64bit.. After returning from standby mode, power manager crashes (version 3). All the software installed is supposed to be compatible with win7 pro 64bit.
    Any help would be greatly appreciated.

    Does this issue appear from the beginning?
    Possibly the OS was installed several time ago and now the registry entries are corrupt.
    Therefore the system busy egg timer could appear.
    Im not 100% sure it will help but possibly you should reinstall the whole OS
    On the fresh installed OS all should works much faster

Maybe you are looking for