cancel
Showing results for 
Search instead for 
Did you mean: 

ViewContainer

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jean Carlo Abreu,

Brilliant idea! Thank You very much, You solved my problem.

Regards,

Motaz