cancel
Showing results for 
Search instead for 
Did you mean: 

Get ChildNodeElement from an attribute

Former Member
0 Kudos

Hi everybody,

how can i get an Element from a subfoler if i have only the name of an attribute unter the needed element?

i have the following node structure with the attribute <attr1>:

node

-childNode (recursive)

--attr1

Now i have a value of attr1, how can i get the needed ChildeNodeElement from this attribute?

regards,

Seed

Edited by: seed_mopo on Sep 23, 2008 12:10 PM

Edited by: seed_mopo on Sep 23, 2008 12:43 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member185029
Active Contributor
0 Kudos

Hi,

wdContext.currentNodeElement().getChildNodeElementAt(<index>).getAttr1();

-Ashutosh

Former Member
0 Kudos

Hi Ashutosh,

i have for example the attribute value "mississippi" now i want to search for the right element in my recursive node of my Tree. How can i do that?

regards,

seed

former_member185029
Active Contributor
0 Kudos

In that case, you will have to loop through each node value to check.

-Ashutosh

Former Member
0 Kudos

Hi,

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ec6622-8da5-2a10-349b-868b6a55...

refer the below method in above pdf.

private void addChildren(IPrivateTreeView.IFolderContentElement parent)

i hope this may helpful

Regards,

ramesh

Answers (0)