cancel
Showing results for 
Search instead for 
Did you mean: 

Call method of interface controller from component controller

Former Member
0 Kudos

hi,

I have created one method in the interface controller of a component. Now i have this method along with attributes to the component controller. Now from the component controller i want to call the method of the interface controller. How do i do it???

Accepted Solutions (0)

Answers (2)

Answers (2)

nikhil_bose
Active Contributor
0 Kudos

As Ayyapparaj mentioned Interface controller are used to expose something to other applications.

Still if you want, open Component Controller properties and add the controller you want to include to the component controller.

you can use

wdThis.wdGet<YourControllerName>.wdGetContext() will get you context.

wdThis.wdGet<YourControllerName>.wdGetAPI() gives you Componentapi

regards,

nikhil

Former Member
0 Kudos

Hi,

You dont need to call the method from the interface controller when you are in the same component.

You can call the method which is in the component controller.

Interface controller is used to expose some methods to a different component.

Ex Comp a want to expose a method which will be used by comp b then you need the interface controller in comp a.

Comp b will use comp a as used component

then it will invoke the methods.

Regards

Ayyapparaj