on 12-19-2007 2:32 AM
Hello,
I have a code that looks like
wdContext.currentTestCtxElement.setValue1(null);
wdContext.currentTestCtxElement.setValue2(null);
wdContext.currentTestCtxElement.setValue3(null);
and so on..
is there a way to loop through it and set same values dynamically?
regards,
arnold
Hi,
You can use the following code
Iterator itr1 = wdContext.getChildNode("<Your Node>",0).getNodeInfo().iterateAttributes();
while(itr1.hasNext())
{
IWDAttributeInfo iWDInfo = (IWDAttributeInfo) itr1.next();
wdContext.getChildNode("<YourNode>",0).getCurrentElement().setAttributeValue(iWDInfo.getName(),"<value>");
}
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.