on 05-04-2007 8:30 AM
Hello All
My application consists 3 methods other than wdDoInit, wdDoModifyView etc.
When I try to change in any method and click on save all metadata, the
Netweaver developer studio is deleting all other method contents except their signatures. But it keeps changes ie saves only the method in which I make changes.
Because of this I lost my some code .
Pls help me out !!!!
Hi Vinod,
Whenever you create a Project Webdynpro Java and declare the components will generate Class file and automated code.
The developer can insert his own java code in the automated classes.
The developer will write the code between
//@@begin
<b>Code</b>
//@@end
Any other place will erase the code.
Regards,
<b>Ramganesan K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinod,
Is you code linked to any version control system? I mean if you are using any version control system to manage your code, just close all the project files window and do a re-synchronize of the code from the version control system and then re-load the whole project. Then you try changing it. This problem has happened to me sometime back and I did a re-synchronize and reload of code from my version control system, rebuild it once and all started working fine.
Regards,
Sudeep
HI Sudeep
Thanks for reply.
But my code is not connected to any version control system.
But now I have found a way to escape. I am making changes and then right click and save then i am closing.
And after that i m clicking on save all metadata.
If i follow this then my new changes are getting saved.
Very Strange !!
I am surprised. Planning to reinstall NWDS..
Hi
Use Methods Tab present in the View Designer mention the name ,params,return values
In the explorer of webdynpro click your method or you can go by implementation tab
write your code always within
//@begin
//your code must be here not at any where otherwise the content will be lost when the code is regenerated
//@end
Regards
kalyan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Vinod,
whichever code you are writing that should be included in tags, like
//@@begin
<code>
//@@end
these tags gets generated for the methods you declare.
NWDS deletes the code out of these tag, since writing outside these tags is not allowed.
hope it helps
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinod Patil.
Please put the code between start and end tags.
i.e. @@begin and @@end tags.
what ever code you have written outside these tags is deleted when you save the metadata.
regards
Anil
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.