Search code examples
powerbuilder

Window refresh After Other Window close


How can I refresh a window when clicking the close button of a other window?

The other window is a Response Window.

I use PowerBuilder 12.5


Solution

  • The best way is to pass a reference into the response window for the “other window” (if you’re already passing in a parameter, you can pass in multiple parameters in a custom powerobject), store it in an instance variable, then fire off a “refresh” event (iw_OtherWindow.TriggerEvent()) on the other window at an appropriate time during the close logic of your response window.

    Good luck.