on 09-10-2007 10:19 AM
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.
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();
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.