on 09-07-2009 1:26 PM
Hi,
How can i call component controller's method from a view?
Thanks.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.