Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
setVisible Function on Replicants in 6.0
pacer11
I know that in 5.5.2 you are able to do this using replicants, but can anyone verify that you can indeed perform a setVisible on a container in 6.0.
I have tried various combinations with no avail. The only thing I can do is loop through and perform a setVisible on the fields within the container.
code sniplet
function addMoremetaFields(item)
{
var flag = item.getOptions()[parseInt(item.getValue())].value == "yes";
var count = 1;
var children;
IWDatacapture.getItem("/ecards/moremeta").setVisisble(flag);
// while (IWDatacapture.getItem("/ecards/moremeta["+count+"]"))
// {
// children = IWDatacapture.getItem("/ecards/moremeta["+count+"]").getChildren();
// for (var index=0; index < children.length; index++)
// children[index].setVisible(flag);
// count++;
// }
IWDatacapture.redraw();
}
DCT sniplet
<?xml version="1.0" standalone="no"?>
<!DOCTYPE datacapture SYSTEM "datacapture6.0.dtd">
<data-capture-requirements name="interactives">
<ruleset name="Interactive Pages(s)">
<label>
This is the Label for Apps Ecards
</label>
<description>
Enter Interactive Page(s) information
</description>
<script src="wellFormed.js"/>
<!-- network selection -->
<root-container name="ecards" location="ecards">
<container name="moremeta" max="6" min="0" default="0" location="moremeta">
<label>
MOREMETA
</label>
<item name="other_meta_name" pathid="other_meta_name">
<label>
Other Meta Name
</label>
<description>
name of the tag ( i.e. keyword )
</description>
<text size="40" maxlength="35" />
</item>
<item name="other_meta_value" pathid="other_meta_value">
<label>
Other Meta Value
</label>
<description>
content / data used in tag above
</description>
<text size="50" />
</item>
</container>
</root-container>
</ruleset>
</data-capture-requirements>
Find more posts tagged with
Comments
Michael
If you checkout this
post
you will discover that Interwoven have admitted it is a bug introduced in 6.0.
Support have told me that the fix will be included in 6.1 SP1.
Hope this helps.
Cheers
Michael