Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
replicant inline command only firing once?
pbenn
TS 6.5 SP1 Sol 9
My DCT makes an inline command call to a perl script to return a generated id into a text field inside a replicant container. It fires once and returns an id. However, on subsequent replicant adds, it simply copies the first value returned. It's as if it only fires once, even though a new replicant item has been created.
My DCT snippet:
<!DOCTYPE data-capture-requirements SYSTEM "datacapture6.0.dtd">
...
<container name="document" combination="and" location="document" default="0" min="0" max="20">
<label>Document</label>
<item name="DocumentID" pathid="docid">
<label>Document ID</label>
<description></description>
<text maxlength="10" size="12">
<inline command="/cms/iw-home/iw-perl/bin/iwperl /iwmnt/default/main/CCMC/WORKAREA/development/cgi-bin/genId.ipl documentID"/>
</text>
</item>
The perl snippet that returns the id
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" . "\n";
print "<substitution><default>$id</default></substitution>\n";
A couple of things I'm in the process of trying:
1) use 6.5 dtd (if it exists)
2) Remove the <default></default> tags. Documentation of this feature only requires <substitution> tags.
3) Anything else?
TIA
P.
Find more posts tagged with
Comments
JonathonG
By definition, an inline will only fire once, at DCT startup time. To generate an ID, you'll want to use FormAPI and either a callServer or some JavaScript means of creating that ID.
Jonathon
Interwoven Developer
Allstate, Inc.