cancel
Showing results for 
Search instead for 
Did you mean: 

Sub view communication with parent view

Former Member
0 Kudos

I have 2 views. MAIN_VIEW and SUB_VIEW.

The MAIN_VIEW has a ViewContainerUIElement that embeds the SUB_VIEW.

I want to call a method of the MAIN_VIEW from the SUB_VIEW. OR I want to fire a plug in the MAIN_VIEW from the SUB_VIEW.

The real need is that SUB_VIEW does some data validation and if validation fails then it wants to tell the MAIN_VIEW to redirect to a view that displays all the messages.

How can this be achieved?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi Prashant,

In componenet (or custom) controler define a method and event. In a method fire event. In subview define e event habdler for event from controller. In main view just call a method from controller.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Thanks Maksim. It worked. I will award you points.