cancel
Showing results for 
Search instead for 
Did you mean: 

Loose import statement

michael_spindler
Participant
0 Kudos

Hi Webdynpro fans,

I´m trying to get through some webdynpro examples from sap (e.g. tutwd_flightlist_init and others). When it comes to place some programming extensions in the controllers (e.g. customController FlightListCust) for method wdDoInit() in the correct place (between @@begin wdDoInit and @@end), I have to organize the imports due to missing classes or packages. That´s working - so far so good. But when I "save all metadata" the imports will be deleted and the coding for the controllers is thrown away. I have updated to Nwds 18 but it has not helped. Does anybody know what to do?

Regards

Michael

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Can you open the Eclipse view named "PDE runtime -> Error Log" and check if an exception is thrown when saving the metadata.

Armin

Answers (4)

Answers (4)

michael_spindler
Participant
0 Kudos

Hi out there,

I have solved the problem, by creating a new workspace and use this for webdynpro. There everything works fine.

Regards

Michael

michael_spindler
Participant
0 Kudos

Hello Bala,

sorry this also has not helped.

Any other suggestions?

Regards

Michael

michael_spindler
Participant
0 Kudos

Hello Armin,

that´s what I found after saving the metadata. The imports, created through "organize imports" for class FlightListCust have been removed again:

Info Mon Nov 12 09:41:34 CET 2007 refreshing<0ms>: /TutWD_FlightList_Init/src/packages/com/sap/tut/wd/flightlist/FlightListCust.wdcontroller


Info Mon Nov 12 09:41:34 CET 2007 refreshing<0ms>: /TutWD_FlightList_Init/src/packages/com/sap/tut/wd/flightlist/SearchView.wdcontroller

Info Mon Nov 12 09:41:30 CET 2007 Saving Metadata for project TutWD_FlightList_Init

Former Member
0 Kudos

Try to repair the project by right clicking on the project->Repair->Project structure and classpath and then organize imports

hope this helps

Message was edited by:

Armin Reichert

Former Member
0 Kudos

Hi,

For gettign the import classes:Open the view/Controller sourcecode.

Rightclick->go to organize Imports..

I hope it work.

I think u hav deleted some of the mapped attributes from the model.

Check the mapping in both the View/Component Controoler.

If u hav anydoubts plz revert me back.