on 11-16-2007 11:50 AM
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.....
Regards,
Dhruv Shah
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.
regards.
mz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Hope you have binded the person node to the controller where you are trying to write this code.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Right click on code part, select source-->organize imports
Use IPrivate<viewname>View.IPersonIPersonElement personE1 = wdContext.nodePerson().currentPersonElement
Regards
LakshmiNarayana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Right click on the code and Click Source->Organize Imports.
or else use the shortcut ShiftCtrlO from the java editor.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.