on 07-14-2006 12:20 PM
Hi All,
I've created a popup window with a view from another component.
Component A has a view A and with a button it opens a popup with a view B from Component B.
So far so good.
Now I want to close this popup with a button in view B.
Normally you close a popup by calling the appropiate method from the component controller:
wdThis.wdGetAComponentController().fireClosePopupEvent();
But this is not possible because the view B from component B can not access the component A controller.
Is there anyway how I can do this?
B.,
Create event Close in component B interface controller, fire this event on button click. In component A subscribe to this event and close window.
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
B.,
What do you mean with "like this"?
It is always possible to map context data between outer component and component usage of inner one.
Also it possible to send "small" data with event parameters from inner component.
Valery Silaev
EPAM Systems
Hi Prooijen,
Create a new action event in Component B, subscribe to this event from Component A by creating a new event handler method and fire this event in component B (View B's Close button).
In Component A, since u alreay have popup window Id, can simply close it. This should be done in the action handler method which is subscribed to the event of Component 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 |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.