cancel
Showing results for 
Search instead for 
Did you mean: 

Calling controller methods in view.

Former Member
0 Kudos

Hi Friends,

I am created two methods in component controller, while i am accessing those two methods in view, i am not getting

wdGet<Controller_name>Controler() method in the view.

How can i get that?

Thanks & Regards,

Murali

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Murali,

This is because you didt add the componet controller under Required Controllers for the view.

For that, take the view, and take its properties. There you will see a option called Required Controllers. Click Add and add your component controller (carefully select component controller).

Now try to access the method by the code you mentioned.

Regards,

Jithin

Former Member
0 Kudos

Hi Jittu,

Help full answer, solved my problem.

Thanks & Regards,

Murali

Answers (1)

Answers (1)

anand_govardhan
Active Participant
0 Kudos

Hi,

Use this


wdThis.wdGet<COmponent Controller>().MethodSaySomething();

Make sure that in view properties. Component controller is added under required controllers.

Regards,

Anand G