cancel
Showing results for 
Search instead for 
Did you mean: 

wdThis and wdContext cannot be resolved

Former Member
0 Kudos

hey,

When I've linked the ESS application to my webdynpro and I open the project I want to change I get an error saying that wdThis and wdContext cannot be resolved.

I'm I missing some imports? or some .jar files

thanks in advance

Lucy

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member185879
Active Contributor
0 Kudos

Hello,

The problem is the context. Please expand all the context nodes and check whether all the attributes are having data type bind to it or not. Mostly we will get this error when we have problem in Context attributes.

Please check

Regards

Nizamudeen SM

Private_Member_52584
Participant
0 Kudos

Hi.......

check your component controlar either your creating context or not

former_member319513
Discoverer
0 Kudos

Hello,

I have got the same problem. It is definitely a bug related to changes in the Context OR in the Actions/methods/layou settings in WebDynpro.

How to resolve this problem? I found a non-trivial way...

Please go to the implementation to that specific View where the most errors show up. Then check which private variable or import is not found. Now it is usually a Type or a Message interface. You can check it does not exist by switching the tab to Navigator and checking gen_wdp / packages ...

Now close NetWeaver Studio. Then launch the application again and open Diagram View of your component. You can see here the Component Controller and one or more other Views. Double-click on the View where the problem was and check the error(s) showing up in the list. Fix these errors by modifying or updating the layout and/or context or other settings in the view. Then rebuild the project and close NW Studio again and then reload. Check that the missing types and files are generated under gen_wdp / packages. At this point if the wdThis or wdContext related errors show up just use right click/Source/Organize imports.

It worked for me...

Tamas

Former Member
0 Kudos

Hi,

Have you tried closing your IDE and opening it again?

Regards,

Satyajit.

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Lien,

Try once this: Close your project from NWDS and again open the project->Reload ->rebuild it hopefully error will disappear.

still exist means close NWDS open the project -> Reload -> Rebuild the project

Let me know what happens..

Regards, Suresh KB

Former Member
0 Kudos

Thanks Suresh,

these problems are indeed solved..

maybe you know this as well, I now have problems with the contexts

first error: The mapping definition is inconsistent, the mapped context element does not exist

second error: Type missing

but I haven't changed anything at the context of this project...

thanks

Lucy

Former Member
0 Kudos

Hi,

I think the problem is context are deleted from component controller.

Regards

Saravanan K

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Lucy,

I think your context element are not mapped propely. Otherwise delete all old mappings between view and controller create value attribute accordingly(data type) map it again.

Could you please mark this thread solved..

Regards, Suresh KB