on 2011 Feb 10 6:45 PM
Hi Gurus!
i know this question could sound similar to a hundred of other..but i didn't find the exactly case. Please i really need to found a solution to this.
I have a component A, at save time I call to create_popup_to_confirm, if the answer is Yes in the popup, I call to create_window_for_cmp_usage to a component B (with interface node), and the pop up disappear.
So, component A -> pop up -> component usage B. But when i have the focus in B, the pop up is not there.
I need the follow: when component usage B is closed -> close automatically the component A.
I have try to send by reference the windows of component A, So, i can make windows_A->close() but it doesn't work, because I get the reference of windows pop up
I have try to subscribe to windows close event..and in component A doesn't catch it.
Please! Help me!
Thanks for all!
MR
So, component A -> pop up -> component usage B. But when i have the focus in B, the pop up is not there.
If you want a case where when you open a new popup window (Window B ) from an event in one already opened popup,
and you dont want the previous popup to close.
Then in that case you have to use create_window( ) method instead of create_pop_up_toconfirm(). confirmation pop up will
be closed as soon as you press any button on it.
In the create_window( ) method you have a parameter close_in_any_case make it abap_false to achieve that.
I need the follow: when component usage B is closed -> close automatically the component A.
Now here you want to close the main window A from the pop up that you have created from the used comp B.
i guess you can try with exit plug but how feasible that will be. because this is complex situation.
do as follow
1. create an exit plug in the window A with parameter close_window.
2. Go to component controller of Comp B and create an event say exit make it interface also by ticking the check box interface.
3. go to the comp A. there go to any view and create an eventhandler with event being the event EXIT ,you just created in the
second step , by using the interface controller of comp B.
4. In this eventhandler call the emthod fire_exit_plg of winodw A.
5. go back to the comp B and go the view method wddoexit and write the code to call the event of the comp controller like as shown below.
DATA lo_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .
lo_COMPONENTCONTROLLER = wd_this->get_componentcontroller_ctr( ).
lo_componentcontroller->fire_exit_evt(
).
Thanks
sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hallo MR,
I have some problem understanding your requirement.
is it you want to
1. exit the appliction by closing the windows of component A ?
in this case you can create a Exit plug in your window from component A. You can achieve this in different ways either making use of the window-A interface in window-B.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.