hi,
i hv created a table dynamically.
i want to add entries to it.
bt it takes only 1 entry .
if i write the 2nd one i get the error:
must not add elements to a Node of cardinality 0..1or 1..1
i hv written the following code:
IWDNodeInfo node=
wdContext.getNodeInfo().addChild(
"TableNode",null,true,true,false,false,false,true,
null,null,null);
IWDAttributeInfo name = node.addAttribute ("Name","ddic:com.sap.dictionary.string");
IWDAttributeInfo add = node.addAttribute("Address","ddic:com.sap.dictionary.string");
IWDNode node1 = wdContext.wdGetAPI().getRootNode().getChildNode("TableNode",IWDNode.LEAD_SELECTION);
IWDNodeElement ne = node1.createElement();
ne.setAttributeValue("Name","Parama");
ne.setAttributeValue("Address","parama.laha@lntinfotech.com");
node1.addElement(ne);
how do i set the cardinality of node to 0:n,
so that i can enter multiple values into my table?
plz help.
thanx.
regards,
ankita