cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in saving the data in NWDS

neha_mahanty
Active Participant
0 Kudos

Hi All,

I am new to Web Dynpro. I am developing a Web Dynpro project in NWDS. Now if I am manually editing a java code & saving it, all the lines which I have added gets deleted . That means no change is getting updated.

Can anyone please help me regarding this. Is there any settings to be made in NWDS for this ?

Thanks & Regards

Neha Mahanty

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Neha,

Developer can add code at specific places in controllers of Web Dynpro. If you are adding at wrong places, then each time you save, that particular code will go off.

Allowed places where developer can add code are

1) between //@begin and //@end of all methods of controller

2) If you have declare variables and write additonal method, you should use //@others block at end of each contrller code. Please note tthat these method will not be visible to other controllers

3) You can create methods by gouing to method tab as well

neha_mahanty
Active Participant
0 Kudos

HI Gangadharayya,

Thanks so much for your reply. I tried with changing the code in the method between the //@begin and //@end tags & its working. but I am facing trouble in declaring the variable.

Did you mean declaring the variable this way.

IWDMessageManager msgMgr; //@others

??

I tried with this way but it was not working.

Regards

Neha

former_member751941
Active Contributor
0 Kudos

Hi Neha,

After changing code. First Rebuild Project. Then Build and Deploy.

Regards,

Mithu

Former Member
0 Kudos

Hi Neha,

If you scroll down controller's code you will get

//@@begin others

//@@end

where you can declare variables. If you dont get searhc for //@@begin others.

Regards,

Ganga.

Former Member
0 Kudos

Hi,

Place your code between

"//@@begin others"

IWDMessageManager msgMgr;

"//@@end"

Regards

Ayyapparaj

neha_mahanty
Active Participant
0 Kudos

HI Ganga,

Yea , its working now .

Thanks a lot

Regards

Neha

neha_mahanty
Active Participant
0 Kudos

HI

Thanks so much. its working

Regards

Neha

Answers (0)