cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain a reference to the element at lead selection

Former Member
0 Kudos

I am trying to obtain a reference to the element at lead selection of a context node (Node name is Person) of component controller, i had a method initPerson() to initialize the values, so when i am writting

IPersonElement personEl = wdContext.nodePerson().currentPersonElement();

to obtain a reference , at IPersonElement it is giving me an error

IPersonElement can not be ressolved or is not a type !

can anyone help me on this

Thanks in advance.

Rashmi.

Edited by: Rashmi Gupta on Nov 6, 2008 11:40 AM

Edited by: Rashmi Gupta on Nov 6, 2008 11:41 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use CTRLSHIFTO

or Right click-> Source-> Organize Imports.

Regards

Ayyapparaj

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I hope that in IPersonElement, "Person" is the node name. Please suffix it with the view or component usage as:

IPrivate<View or Component Name>.IPersonElement ele = wdContext.nodePerson().currentPersonElement();

Hope it helps.

Cheers,

Manoj

Former Member
0 Kudos

Thanks to all, Problem got ressolved.

Rashmi.

former_member192434
Active Contributor
0 Kudos

Hi

Usse

view/controllerName.IPersonElement

Just like given example below

IPublicAllInOne.IFlight_List_1Element ELE = wdContext.nodeFlight_List_1().createFlight_List_1Element(new Bapisfldat());

PS: Orgine the import files. by pressing control+Spece button at time

or

controlSpeceO

Thanks