on 06-14-2008 10:31 AM
Hi,
Is it posible to call a method that is defined in the Component Controller in the View?
If it is posible please give some sample code how to call the method?
Regards,
Padmalatha.K
Hi,
Add the controller as part of Required Controllers
and use the following code
wdThis.wdGet<ComponentName>Controller().<MethodName>()
Ex:
wdThis.wdGetTestCompController().getData();
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Padmalatha, all the methods defined in a controller from 'Methods' tab are instance methods. An instance method defined in a component controller is callable from any view controller that holds a reference to the component controller.
Defining methods between the tags
//@@begin others
//@@end
is useful if you want to declare static methods.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can call the the method defined in Component Controller in a View. Use the following code.
wdThis.wdGet<ComponentName>Controller().<MethodDefined in Component Controller>();
Thanks & Regards,
Jhansi Miryala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.