on 07-15-2009 5:38 PM
Hi All,
I have a parent view containing a ViewContainerUIElement. I embedded two child views inside that parent view. This is all in one component.
I created plugs from one child to the other and I need to fire the plug from the parent view.
How do I access these plugs to fire them from the parent view?
Regards,
Motaz
A solution:
you have child1View and child2View. On the parent view you have the button goChild2Button
now, define an event on the component controller: goChild2Event
define an event handler on chield1View with the event source: goChild2Event
then, you push the goChild2Button and this function calls a function on the controller wich launch the event goChild2Event. This event is caught on the event handler on child1View. Inside this event handler is fire the plug to child2View.
Regards
JC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jean Carlo Abreu,
Brilliant idea! Thank You very much, You solved my problem.
Regards,
Motaz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
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.