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
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
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.
Try to check the valid status of refresh required window in close query event of that closing window. If the valid status is true then do the refresh code.
Best of luck.