Skip to Content
avatar image
Former Member

Loose import statement

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 10, 2007 at 01:54 PM

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

    Armin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 12, 2007 at 09:08 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Nov 10, 2007 at 09:31 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 13, 2007 at 09:20 AM

    Hello Bala,

    sorry this also has not helped.

    Any other suggestions?

    Regards

    Michael

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 13, 2007 at 11:38 AM

    Hi out there,

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

    Regards

    Michael

    Add comment
    10|10000 characters needed characters exceeded