Getting Error in Method
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.....
Maxim Zalevski replied
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.