on 01-29-2015 7:03 AM
Hi Experts,
I am basically an ABAPer and recently I got into a project where I have to handle certain webdynpro java requirements too.I am stuck at one of the requirements now. I have to add a new method to the component controller and have to call the same from the event of a button.I have created the method from the component controller properties pane and I can see it listed in the methods. How to implement this method. When I right click on the method and select Navigate to -> Implementation its getting navigated to the java editor of the component controller but I am not able to see the implementation of my method there. Where am I supposed to write the code for the method ?
Try a right click on your DC and choose "rebuild project", Make sure that all editors are saved. After that open the java implementation of the controller again and you should be able to find the method.
Regards,
Tobias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot guys. It helped a lot.
Now I need another help. I have completed the development, i.e, made changes to the existing DC. Now I am not sure about the testing part.My DC is in local development now.
It would be really grateful if somebody can provide me the steps to test the same in portal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you created a application in you WD project? Then you can rightclick on your application and choose "deploy new archive and run". Then the NWDS will deploy your project and opens a browser and runs your app.
If you have no application. Then right click on applications and choose "Create Applications". Then follow the wizzard.
Regards,
Tobias
I too have faced this issue at start-up
The reason the implemented method is not appearing in the Java editor is that, the code is not builded after you have created the method in the component controller Properties -> methods.
For this you can enable the auto-build option also. Ones enabled you need not Build everytime manually.
So after you have implemented the method in the component controller, you can call this method from the Action of the View controller using this following syntax
wdThis.wdGet<controller_name>Controller().method_name(params)
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this links you can get help
http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=16435
But You need to implement the methods in component controller after those methods you need to create interface controller and you need to call component controller methods in interface controller.same process for views(Actions,Events) also.
Regards,
Durga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
that's the place to write your code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.