cancel
Showing results for 
Search instead for 
Did you mean: 

Getting AttributeInfo of all the attributes in the node

Former Member
0 Kudos

Hi all,

I have applied EVS to one of the attribute of a node by using the following code:

<b>IWDAttributeInfo attributeInfo =

wdContext.node<Nodename>.getNodeInfo().getAttribute(<AttributeName>);

ISimpleTypeModifiable type = attributeInfo.getModifiableSimpleType();

type.setFieldLabel("Type");</b>

But now I want to apply EVS to all the 10 attributes of a particular node.Is there any way to get the attributeInfo of all the attributes of that node by applying for loop.

Please help me out....

Helpful answers will be rewarded.

Thanxs in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I think method iterateAttributes() is the answer. This method returns iterator, thanks to it You can get attribute one by one using iterator.getNext() in loop. Look at this example:


Iterator iter = wdContext.node<Nodename>.getNodeInfo().iterateAttributes();
while(iter.hasNext()) {
 IWDAttributeInfo attributeInfo = (IWDAttributeInfo) iter.next();
}

Answers (0)