I've search the forum, but haven't found anything to address this issue.
I have a context of
NodeA |-- NodeB | |-- ValueA | |-- ValueB | |-- ValueC |--ValueD |--ValueE
I have 1-N of NodeA with it containing 1-N NodeB.
I'm trying to prepopulate the context on startup but can't get NodeB inserted into NodeA. I.e. my code looks like this
wdContext.nodeNodeA().invalidate(); for (int k = 0; k < some_info.length; k++) { INodeAElement nodeA = wdContext.createNodeAElement(); nodeA.setValueD((String) some_info[k][0]); nodeA.setValueE((String) some_info[k][1]); String[][] outStrs = (String[][]) some_info[k][2]; INodeBElement nodeB = wdContext.createNodeBElement(); for (int j = 0; j < outStrs.length; j++) { nodeB.setValueA(outStrs[j][0]); nodeB.setValueB(outStrs[j][1]); nodeB.setValueC(outStrs[j][2]); } wdContext.nodeNodeA().addElement(nodeA); }
How do I get the 1-N nodes of NodeB associated with NodeA?
Any help is appreciated.
Lori