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)
Accessing an XML file in a DCT
System
Is it possible to access an XML file in a DCT in order to populate a dropdown list. And if so can the XML file be a file generated from Active directory?
Find more posts tagged with
Comments
Adam Stoller
You can create an inline script that parses an XML file and then creates the list and outputs it (according to the requirements of inline scripts) and reference that inline script within your DCT.
If you are using TeamSite Templating 5.5.2 you could probably also do this via FormAPI.
I'm not sure what ActiveDirectory has to do with this - but if you can perform the query (or however you are getting this XML file from ActiveDirectory [?]) within the inline script - it should work just fine.
--fish
(Interwoven Senior Technical Consultant)
Migrateduser
I am using 5.5.2, so I will use that approach. To enable form.api, I must enable it in iw.cfg - is there any other procedure(s) - as I have already enabled it in iw.cfg, and have tested a DCt using a simple 'hello world' alert, but nothing happens.
Thanks for your responses
Migrateduser
Make sure iw.cfg has
[teamsite_templating]
enable_formapi=true
with no whitespace at all on the enable_formapi line.
You _may_ need to run iwreset -a after changing enable_formapi (not sure, but doesn't hurt.)
If neither of above works, please post your DCT for us to look at your test code.
bw
Bob Walden [bob.walden@interwoven.com]
Interwoven Education Group
IM: Yahoo, MSN bob_walden
Migrateduser
I have enabled formapi in the iw.cfg and run iwreset. I have attched the DCT.
<?xml version="1.0" standalone="no"?>
<!DOCTYPE datacapture SYSTEM "datacapture5.0.dtd">
<data-capture-requirements type="content" name="test">
<!-- data-capture-requirements elements contain area elements -->
<ruleset name="Test">
<script>
<![CDATA[
alert ("Hello, world!");
]]>
</script>
<item name="Start Date">
<description>date format is YYYY-MM-DD</description>
<database data-type="DATE" data-format="yyyy-MM-dd" />
<text maxlength="10"
validation-regex="^[0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9]$" />
</item>
</ruleset>
</data-capture-requirements>
Edited by kylino on 11/19/02 02:33 AM (server time).