Method Community

 

Refresh Grid On Parent From Child OnScreenClose

Last post 11-15-2013 10:15 AM by bcr_garrett. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-14-2013 5:14 PM

    Refresh Grid On Parent From Child OnScreenClose

    Should I be expecting a grid on a parent screen to refresh when using "Clear Screen For New Entry" from Child OnScreenClose?  I am having trouble geting this to work.
    I am essentially needing to open a popup from a customer screen that lets users update certain customer fields.  When they are finished, the popup closes, and the parent customer screen is refreshed to show the changes.
    Hope this makes sense - maybe I am overlooking something simple.

    Thanks,
    Garrett

  • 11-15-2013 9:26 AM In reply to

    Re: Refresh Grid On Parent From Child OnScreenClose

    Hello bcr_garrett,

        I have read your issue and it is one about timing and they can always be a little tricky.

         First, when you Clear Screen For New Entry, you take away the information off the screen and it can not be used. On the other hand, it shouldn't affect the refreshing of the page.  It looks like you have the refresh grid/information command in the wrong spot.  I'm going to recommend using a popup to update the information. Here is how.

       1) Have a button to click that opens a popup displaying customer information from another table.  The button would have a 'Show Screen In Pop Up' Action set with the screen of the Child table.

       2) To close the popup screen, have a button with a 'Close Pop Up Screen' action.

       3) Here is what I believe you are missing. In your parent screen, click on 'Advanced…'.  In Step 2 of 5: Actions, create a new Event for 'onClosePopUp'. (The default is OnScreenLoad and hides the other Event options).  Create a 'Refresh Grid' action for the parent grid you are looking to have refreshed automatically.  You can try your clear command here.

    Please let me know if this helps or you need more clarification.

    Greg Bilous
    Community Support Specialist
    Method Integration
    g.bilous@method.me
    Toll Free: 1.888.925.6238
    Local and overseas: 416.847.0400 ex.756
    Fax: 416.640.6027
  • 11-15-2013 10:15 AM In reply to

    Re: Refresh Grid On Parent From Child OnScreenClose

    Thanks Greg - I was putting my OnClosePopUp actions in the Child screen instead of the Parent.

    All is well now - thanks again!

Page 1 of 1 (3 items)