cancel
Showing results for 
Search instead for 
Did you mean: 

Access subnodes from a node

Former Member
0 Kudos

Hi guys,

I need your help very much! In my WD applicaton, I have this scenary in Context of View:

NODE01
 - NODE02
   - NODE03
     - ATTRIBUTE01

Details:

======================
NODE01
======================
cardinality: 0..n
selection: 0..1
singleton: true

======================
NODE02
======================
cardinality: 0..1
selection: 0..1
singleton: true

======================
NODE03
======================
cardinality: 0..1
selection: 0..1
singleton: true

In my View I have a loop in NODE01:

for (int i=0; i < NODE01.size(); i++) {

  NODE01.get{n}ElementAt(i)...(???)...ATTRIBUTE01

}

How can I access the ATTRIBUTE01 from NODE01?

Thank you, very much!

Kleber

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kleber

Did you want to say ATTRIBUTE1 from NODE3, right?

Try this.

for (int i=0; i < NODE01.size(); i++) {
  NODE01.setLeadSelection(i);
  Object obj = wdContext.currentNODE3Element.getATTRIBUTE1(); 
}

I don't have sure if this works. But i think yes.

Regards

Marcos

Former Member
0 Kudos
wdContext.currentNODE03()Element().getATTRIBUTE01()

The lead-selection must be set for all three nodes.

Armin