on 01-31-2011 11:56 AM
We have a list in a view in a WDA window (A) which is bound to an internal table. When the user clicks a button, a popup WDA window is opened (B) which allows them to add something to the list. When window B is closed, how can we inform the view in window A to refresh? Refreshing on every WDOMODIFYVIEW seems a waste. Is there any way for windows to communicate an event perhaps with inter-window plugs?
Hi,
if_wd_window provides SUBSCRIBE_TO_BUTTON_EVENT.
You can use this method to subscribe to the event of the popup window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First, add the window A (e.g. W_MAIN) as a usage to your view B (under properties).
When the user clicks "Add" in your popup window B you fire the outbound plug of your window A:
DATA: lo_window TYPE REF TO ig_w_main.
lo_window = wd_this->get_w_main_ctr( ).
lo_window->fire_yourplug_plg( ).
Now all you do is wire your outbound window A plug to the view you want to refresh. In that view the HANDLEIN does all the refreshing from any plug input so the refresh code is in one place.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.