on 09-12-2012 10:12 AM
Hi, I have an application where there is a parent node has a child node. I want access to that child node, how I can do? I used this code, but always get the first child node of the first parent node, can anyone help?
for(int i= 0; i<wdContext.nodeObtenerReferenciaReturnContSap().size(); i++){
IObtenerReferenciaReturnContSapElement element = wdContext.nodeObtenerReferenciaReturnContSap().getObtenerReferenciaReturnContSapElementAt(i);
for(int j=0; j<wdContext.nodeObtenerReferenciaReturnContSapFunc1().size(); j++){
IObtenerRefReturnContSapFunc1Element funcional1 = (IObtenerRefReturnContSapFunc1Element) wdContext.nodeObtenerRefReturnContSapFunc1().getElementAt(j);
....
}
}
where nodeObtenerReferenciaReturnContSap is the parent node, and nodeObtenerReferenciaReturnContSapFunc1 is the child node, regards.
getChildNode("nodename", index);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
but to access that function I have to do:
wdContext.nodeObtenerReferenciaReturnContSap().getChildNode(...);
But if I want to get the child node of a parent node "X", because I don't do:
IObtenerReferenciaReturnContSapElement element = wdContext.nodeObtenerReferenciaReturnContSap().getObtenerReferenciaReturnContSapElementAt(i);
element.getChildNode(...) <-- This don't exist
how do I do it? thanks.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.