on 07-13-2007 8:27 AM
Hiee All,
I have created one method in one view implementation.I want to use that method in another view,how can i do that?how to call that method from other view?
Thanks in advance.
Hi
Yes as said by ashwani you cann't access the method of one view to another view and also you can acces from view to comp ctroller not from comp ctrl to view
In the view 1 define the usage of component controller
In the component controller create a method
//@@begin javadoc:cc_method()
/** Declared method. */
//@@end
public void cc_method( )
{
//@@begin cc_method()
//@@end
}
In the view 1 call the component controller method like this
//@@begin javadoc:method1()
/** Declared method. */
//@@end
public void method1( )
{
//@@begin method1()
wdThis.wdGetTest1Controller().cc_method();
//@@end
}
Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
For context mapping as well as for calling method, the usage of controller is needed.
One more thing, You can also use custom controller also for these purposes.
There u can create ur own methods(similar to comp or interface controller) and define it's usage in view controller
Regards
Fahad Hamsa
Hi
For both thing(Either context mapping betwen view an dcomp ctrller or using the comp controller method in view) you have define the usage of component controller in the view.
When you do context mapping via open data modeller (Right the component you will see data modeller option) in this case usafe is automatically added while you drag the mapping
Hope this helps,
Let me know if issue is solved or not
Thanks and Regards,
Arun
Hi
For both thing(Either context mapping betwen view an dcomp ctrller or using the comp controller method in view) you have define the usage of component controller in the view.
When you do context mapping via open data modeller (Right the component you will see data modeller option) in this case usafe is automatically added while you drag the mapping
Hope this helps,
Let me know if issue is solved or not
Thanks and Regards,
Arun
Hi
For both thing(Either context mapping betwen view and comp ctrller or using the comp controller method in view) you have define the usage of component controller in the view.
When you do context mapping via open data modeller (Right the component you will see data modeller option) in this case usafe is automatically added while you drag the mapping
Hope this helps,
Let me know if issue is solved or not
Thanks and Regards,
Arun
AFAIK You cann't access the method of one view accessed directly.
You can make the common methods moved in component controller or interface view controller. Later you can add these controller as used controllers in view controller and use the method.
Best Regards,
Ashwani KR Sharma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.