cancel
Showing results for 
Search instead for 
Did you mean: 

Calling component controller's method

Former Member
0 Kudos

Hi,

How can i call component controller's method from a view?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

former_member40425
Contributor
0 Kudos

Yes, You can call method of component controller from View.

If you have already mapped any context node/attribute between your view and component controller then it means component controller is already added in your view. If you have not done same then you can add component controller by going into the properties of view.

To access the method use following code.

wdThis.wdGet<Your_controllername>Controller().<methodName>();

Regards,

Rohit

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If the Component Controller is already not added in your View Controller then,

Go to the properties tab of your View Controller, select add controllers button and add the Component Controller.

Now using the below code access the method.

wdThis.wdGet<ComponentControllerName>.method()

Regards,

Charan

Former Member
0 Kudos

Hi

Add the controller as part of Required Controllers

and use the following code

wdThis.wd<geturControllername>Controller().get<yourmethod>();

Edited by: Tulasi Palnati on Sep 7, 2009 2:36 PM