cancel
Showing results for 
Search instead for 
Did you mean: 

How to call View Method from ComponentController ?

Former Member
0 Kudos

Hallo Experts,

Is there a possibility to call a method of View(Controler) from the ComponentController ? Component is still the same.

Greetings

Wojciech

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Wojciech,

as already said by Gopi, the methods of the view should not be called outside the view! Of course you could store a reference to the view inside the comp_controller, but the right way is to inform the the views in case of changes! Just use events to notify view about changes and trigger changes inside the event-handler (which are inside the views).

Best regards,

Stefan

Former Member
0 Kudos

Events !

It works

Thanks Stephan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

Method declared in the view are private, where as methods declared in the comp controller are public. So a method declared in view cannot be accessed from outside of the view.

Thansk,

Gopi