on 12-15-2008 6:52 AM
hi all,
i am working on an application in which i need to destroy it on an action of a button which is created in the same view by me only( i.e i am not using the default buttons created by wizard). Please let me know.
I also want tmake the size fix as the window created is resizable and user can play with it.
thank you.
hi andrew,
i think u want to destroy the window on the custom button u have created , please use the following code i think it will help you.
write in the action method of your button...
data:
l_api type ref to if_wd_view_controller,
l_window_ctlr type ref to if_wd_window_controller,
l_popup type ref to if_wd_window.
l_api = wd_this->wd_get_api( ).
l_window_ctlr = l_api->get_embedding_window_ctlr( ).
if l_window_ctlr is bound.
l_popup = l_window_ctlr->get_window( ).
l_popup->close( 'l_popup' ).
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.