Hi All,How to set the nested container set to collapsed true??IWDatacapture.getItem("/container1/container2/container3").setCollapsed(true);
Im using TS 6.5 SP2.I can collapsed first container but the second and third does not work.thanks
Hi Fish,Here you go. Basically when the user edit the DCR the 3rdCon container should not collapse.thanks
IWDatacapture.getItem("/test/2ndCon[1]/3rdCon").setCollapsed(true);
<?xml version="1.0" standalone="no"?><!DOCTYPE datacapture SYSTEM "datacapture6.0.dtd"><data-capture-requirements name="test"> <ruleset name="test"> <script language="javascript" location="template-type" src="test.js"></script> <root-container name="root" location="root"> <item name="one" pathid="one"> <text required="t" maxlength="50"> </text> </item> <container location="2ndCon" name="2ndCon" default="1" min="0" max="100" combination="and"> <item name="label" pathid="label"> <label>Label</label> </item> <container name="3rdCon" location="3rdCon" default="0" min="0" max="500"> <label>Label</label> <item name="path" pathid="path"> <label>File</label> <description>File</description> <text size="65"> </text> </item> <item name="File1" pathid="File1"> <label>File 1/label> <text size="65"> </text> </item> </container> </container> </root-container> </ruleset></data-capture-requirements>
<?xml version="1.0" standalone="no"?><!DOCTYPE datacapture SYSTEM "datacapture6.0.dtd"><data-capture-requirements name="test"> <ruleset name="test"> <script language="javascript" location="template-type" src="test.js"></script> <root-container name="root" location="root"> <item name="one" pathid="one"> <text required="t" maxlength="50"> </text> </item> <container location="Con2" name="Con2" default="1" min="0" max="100" combination="and"> <item name="label" pathid="label"> <label>Label</label> </item> <container name="Con3" location="Con3" default="0" min="0" max="500"> <label>Label</label> <item name="path" pathid="path"> <label>File</label> <description>File</description> <text size="65"> </text> </item> <item name="File1" pathid="File1"> <label>File 1/label> <text size="65"> </text> </item> </container> </container> </root-container> </ruleset></data-capture-requirements>