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)
including perl within datacapture.cfg
kss
Hi,
Is it possible to include perl within datacapture.cfg. I searched in the articles but couldn't find an example for this.
Thanks
kunjal.
Kunjal Shah.
Co-op, Web Development Group,
GlaxoSmithKline,
RTP, USA.
Find more posts tagged with
Comments
nipper
When someone asks this question, I am skeptical. That person either knows very little and is confused, or they have a very complex problem.
So, to start....
What are you trying to do that you need perl in a DCT ?
Since the DCT defines the format of the templates, it can be dynamic with callouts (i.e. reading fields from a DB to populate a scrolling list). You could use perl to do that:
<item name="User">
<label>User Name</label>
<select required="t">
<inline command="/iw-home/iw-perl/bin/iwperl /iw-home/custom/bin/callout_ldap.ipl" />
</select>
</item>
where callout_ldap is a perl script that gets a list of login names and the nicely formatted names and puts them into an XML list that can be inserted into a scrollinglist.
Does this help ?
Andy
Event Viewer fix.docx
Johnny
If the question relates more to the fact that you have a need for programatic / dynamic interations, then consider using FormAPI which is a javascript api.
There is also the option of perl cgi call outs.
If you explained what you would like to achieve, we could be of more help.
John Cuiuli
kss
Thanks for the reply,
Yes I am very new to Teamsite and my problem is not at all complex. I want to populate the data fields in a dcr beforehand. I was thinking of using Javascript using Formapi after reading similar posts, but my iw admin said i would be better of using perl. I think a callout to perl program as you have shown in the post would do my work.
Thanks a lot.
kunjal.
Kunjal Shah.
Co-op, Web Development Group,
GlaxoSmithKline,
RTP, USA.
nipper
Just make certain that your script puts out clean formatted XML for the DCT to use.
Also, error check is a good and often forgotten idea. If my callout does not connect to ldap for some reason the templating window gives you the TS equivilent of an HTTP 404 error. Not helpful and tough to debug. Have it put out a scrolling list of "Could Not Connect To DB" or something like that, it will make you life soooo much easier.
I'd ask IWOV for an RFE, but I do not know how they could do it.
FInally watch the advice you get from Aussie's like Johnny, they are a strange bunch. Actually only he is. :-)
HTH
Andy
Johnny
Dem raskely rabbits!! itch itch
John Cuiuli