Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
bug, feature or JimmyFat losing it?
System
iwserver: 5.5.2 Build 17976 Interwoven 20030323
I have reduced my current problem to the following DCT code:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE data-capture-requirements SYSTEM "datacapture5.0.dtd">
<data-capture-requirements type="content" name="admin-records">
<ruleset name="admin-records">
<container name="container">
<item name="replicant">
<replicant default="2" min="2" max="100">
<item name="id">
<text required="t" size="60" />
</item>
</replicant>
</item>
</container>
<script language="javascript" location="webserver" src="/iw/formapi/admin/records.js"/>
</ruleset>
</data-capture-requirements>
I want to get the replicant item and be able to call getName on it to assemble other XPaths. The FormAPI:
var field = '/container/replicant';
var rep = IWDatacapture.getItem( field );
if ( rep != null )
{
alert( field + ' = ' + rep.getName());
alert( rep.getType());
}
I would expect the first alert to show me '/container/replicant = /container/replicant', but what I get is '/container/replicant = /container'. Since it's giving me the container instead of the replicant I would expect it to the second alert to show me the container's type, but it shows me andreplicant. So I think the getItem is giving me the replicant, but getName on this replicant item gives me the wrong value.
I'm sure I've used code like this before and had it working but I can't find my problem in this code. Can someone load this and see if they get similar results?
Find more posts tagged with
Comments
There are no comments yet