Hi,I have a DCT with the following container structure:<root-container location="contentpage" name="contentpage"> <container location="main" name="main"> <container location="metainformation" name="metainformation"> </container> <container location="article" name="article"></container> <container location="frontpage" name="frontpage"></container> </container></root-container>Now I want to delete the article and fronpage container upon creation of the DCR. The FormAPI code to achieve this, I thought will look something like this: var sItem = IWDatacapture.getItem("/contentpage/main"); var l = sItem.getChildren(); for (var i=0; i<= (l.length -1); i++) { //alert(l.getName()); if(l.getName() == "/contentpage/main/article") { //alert(sItem.getChildren()); //alert("deletd: " + i); var s = sItem.deleteInstance(i +1); alert(s); } }I know that the above example only tries to delete the article container, but s is always false, and the container never gets deleted !. What am I missing here ?RegardsVaqas
l.deleteInstance(1);
sItem.deleteInstance(i+1);