Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Getting Error in Method

Hi All,

I have created a Method. and I have a structure named as Person which has First Name and LastName.

Now i have a method named as public void InitPerson()

so when i write IPersonElement personE1 = wdContext.nodePerson().currentPersonElement();

Then i am getting the Following Error:

IPersonElement cannot be resolved or is not a type.

So pls help me out asap.....


Dhruv Shah

Former Member replied

Hello Dhruv,

if the problem u experience is taking place during Design Time, that seems like you miss some import definition. So please try next:

In you NWDS, open the implementation tab of your component and do a right mouse click. In dipsplayed context menu - select:

Source - > Orginize Imports.

If you did write your class name IPersonElement right, then it will be imported automatically. In other case, check what type of object does method currentPersonElement() return.

hope it helps.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question