on 06-28-2005 10:54 AM
Hi Experts
I have one value node in my application with only value attributes(no sub nodes). At runtime I want to determine , how many value attributes it has. Is there any method exsist for this?
Thanks in Advance
how about just this?
wdContext.nodeNodeName.size();
Regards,
faB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
IWDNode node = wdContext.nodeSearchoutput();
Iterator i = node.getNodeInfo().iterateAttributes();
int count = 0;
while(i.hasNext()){
wdComponentAPI.getMessageManager().reportWarning("Attribute : "+i.next().toString());
count++;
}
count will give u the no of value attributes inside that node..
(iterate children is to iterate thru child nodes...)
Regards
Bharathwaj
Hi,
Try this
IWDNode n=wdThis.wdGetContext().getChildNode("NodeName",0);
n.size();
OR
Iterator it=n.getNodeInfo().iterateChildren();
while(it.hasNext())
{
IWDNodeInfo nodeinfo=(IWDNodeInfo)it.next();
nodeinfo.getName();
}
Regards, Anilkumar
Message was edited by: Anilkumar Vippagunta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
26 | |
10 | |
10 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.