on 01-09-2009 2:05 PM
Hi Friends,
I have a Create in Main view( of Main window ) which contains a 'create' Button.
When I click Create Button, it should open a Pop-up window, which contains, save and Goback.
and I do not want to default button, so how to back to Main window when i clik 'Goback'.
if you have any code, kindly, provide me.
Regards,
Xavier.P
Hi Xavier,
Just add the following code in the ONACTIONGOBACK method
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.
This code will close the pop up window, and you'll automatically go to the main view
I hope it helps
Regards
Arjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.