on 12-03-2008 3:55 PM
Hi experts,
I am calling a popup (own component) from a wedynpro application. The popup contains a text edit and 2 buttons (Continue and Cancel).
The textedit from the popup is bound to a context attribut of the calling application via the component usage of the popup. The call of the popup, closing the popup window when clicking the 'continue' button and the context binding to the attribut of the caller webdynpro is working fine. This means the context attribut of the caller webdynpro is filled with the value of the text edit from the popup.
I am using method CREATE_WINDOW_FOR_CMP_USAGE from Interface IF_WD_WINDOW_MANAGER.
My problem is that I do not know how to call a event in the caller application when the user is clicking the 'continue' button on the popup. I need the same behavior we can find in method CREATE_POPUP_TO_CONFIRM. Here we can register e.g. the YES button to an event in the caller application. Please note: I cannot use CREATE_POPUP_TO_CONFIRM, because I need a text edit in my popup.
Is such a functionality anyhow available for CREATE_WINDOW_FOR_CMP_USAGE as well?
Thanks in advance for your help.
Tom
Hi,
First Create Event say 'EVT' in component controller.
In the action on the button 'continue' call the event you created in the component controller (fire that event).
Now create a method of type Event in the veiw from where the popup was called and link that with event you created in component controller.
Best Regards
Vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I followed your description and I created created two components.
But I am not able to find something like VH_WINDOW_CLOSED.
If I create an event handler in the main component I can only see the interface-controller events of the used component. But there is no event to select if popup is closed.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Thomas,
create an event handler in your component controller of the apllication (not in popup, but main application) there you will get in the event column an f4 help where you have to when you click on f4 help you will see something like VH_WINDOW_CLOSED select it. now this event will automatically get triggered when your pop up will get closed.
these are the exact steps......
1. click on method Tab in component controller
2. create an event handler there i.e. in method type select event handler.
3. now under event column use f4 help to get VH_WINDOW_CLOSED( i hope you are doing componentusage here).
regards
Pranav
Edited by: Pranav Nagpal on Dec 4, 2008 6:26 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
it's not the nicest way but you could raise an event in the popup. The consumer component could register to this event.
Hope this will help.
Kind regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.