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)
Using Form API in DCTs
manugarg
Hi guys!
We have recently migrated from TeamSite 4.5 to TeamSIte 5.5.2. I was trying to put <script> code in one datacapture.cfg, but somehow Form API feature doesn't get enabled.
I checked /etc/iw.cfg. It wasn't having the entry enabling formapi. So I put that and ran iwreset. But it still doesn't do anything realted to FormAPI. Following is a snippet from my datacapture.cfg:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE datacapture SYSTEM "datacapture5.0.dtd">
<data-capture-requirements type="content">
<ruleset name="Box">
<script>
<![CDATA[
function init()
{
alert("Initializing FormAPI");
IWEventRegistry.addItemHandler ("/Section/Sub-Section/Links/no_of_columns", "onItemChange",displayColumns);
}
function displayColumns()
{
alert("You changed the value");
}
init();
]]>
</script>
<description>
Enter Box Content
</description>
<item name="Description">
<textarea rows="3" cols="55" wrap="virtual"></textarea>
</item>
...
</ruleset>
.....
It's not giving any error. Just that Form API doesn't seem to be working as I get no alert. Can anybody pls help if I am doing something wrong.
Thanks
Manu
TeamSite Template Developer
Find more posts tagged with
Comments
manugarg
Sorry guys. I was doing a mistake. I should have run 'iwreset -a ' to restart the engine.
Regards
Manu
TeamSite Template Developer