on 04-07-2007 3:13 PM
Hi experts,
I defined a method in the componentcontroller and I need to call this method from many views.If this is possible, how can I call it from any view? Can anyone give me an example code and explain it. Thanks for all responses
hi Mehmet Targün ,
Its very simple .
1 ) I choose my component controller and I clicked in Method tab .
In methods I added my method
myNewMethod()
. I wrote code inside it .Web Dynpro codeWizard
( Ctrl + F7 ) . In wizard I clicked on second Option i.e. Method call in Used controller .myNewMethod
in it .I hope this is what you was looking for .
Cheers
Parry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
go to properties tab of your view and define usage of component controller
:-- and then go to any method of your view and click a button on mid top which generates code. You will find a window with lots of options select call metod of used component . Select your component controller there and your method.
:--simply go to your method and use like:
wd_comp_controller->method_name ( ). (ofcourse u have to add usage first in properties tab)
Thanks
Anuj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.