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)
onItemChange Event on replicant container
kingtut
Hi,
I am not being able to trigger an event on addition/removal of replicant container. ive stripped all other functions in the included js file. heres the formapi code in links.js included file. I dont know wheres the error
[HTML]
IWEventRegistry.addItemHandler("/Links/LinkTableHeading", "onItemChange", alertItemName);
IWEventRegistry.addItemHandler("/Links/LinkDetails", "onItemChange", alertItemName);
alertItemName();
function alertItemName(itemObject)
{
alert("HELLO");
}
--------------------------------------------------------------------
heres the inline which creates the dct
#!/p01/app/iw/tsite/iw-home/iw-perl/bin/iwperl -w
print qq(
Created By
Modified By
Editor who modifies this Form or Data Record
Links
Classification
Please select Beneficiaries or Part A or Part B.
Applicable Regions
Title
This is the title of the index Page
Image
Please browse and select the image.
initial-dir="/images">
Description
If you would like specific text to show up as a description when your page comes up in a
search, enter it here.
<br />
Is it a Table?
Please select if the data is going to be in a table format.
Link Table Heading
Column Heading
Link Details
Add link
Select link Type
Please select if the link is of image, text or Date type.
Link Text
Link URL
Please browse and select the image.
initial-dir="/templatedata/Medicare">
Image link
Please browse and select the image link.
initial-dir="/templatedata/Medicare">
Image URL
Please browse and select the image path.
initial-dir="/images">
Link Date
Please enter in this format (mm/dd/yyyy)
validation-regex="((((01|03|05|07|08|10|12)/((0[1-9])|([12][0-9])|(3[01])))|((04|06|09|11)/((0[1-9])|([12][0-9])|(30)))|(02/((0[1-9])|(1[0-9])|(2[0-8]))))/(19|20)[0-9][0-9])|(02/29/(19|20)(((04|08))|((2|4|6|8)(0|4|8))|((1|3|5|7|9)(2|6))))"
maxlength="10" size="10" >
url="/iw-bin/custom/medicare/calendar.cgi"
label="Calendar"
window-features="width=200,height=230,resizable=no,toolbar=no,scrollbars=no,titlebar=no"/>
Date URL
Please browse and select the date link Path.
initial-dir="/templatedata/Medicare">
Description
Enter description here.
<br> external-editor="visualformat"<br> external-editor-config="medicare-internet-content-vf.xml" wrap="virtual"/><br> </item><br> </container><br><br> <item name="Text"><br> <label>Text</label><br> <description>Enter description here.</description><br> <textarea required="t" rows="20" cols="60"<br> external-editor="visualformat"<br> external-editor-config="medicare-internet-content-vf.xml" wrap="virtual"/><br> </item><br></container><br><script language="javascript" location="template-type" src="/sites/globalscripts/ButtonDisabler.js"/><br></substitution>\n);<br>----------------------------------------------------------------------<br>heres the datacapture.cfg<br><br>?xml version="1.0" encoding="UTF-8"?><br><!DOCTYPE data-capture-requirements SYSTEM "datacapture5.0.dtd"><br><data-capture-requirements dtd-system-identifier="" name="Links" type="content"><br> <ruleset name="Links"><br> <inline command="/default/main/INTERNET/dummy1/dummy2/Master/WORKAREA/maintenance/templatedata/includes/dc-links.pl" /><br> <script language="javascript" location="template-type" src="ButtonDisabler.js"/><br> <script language="javascript" location="template-type" src="setBodyStyle.js"/><br> <script language="javascript" location="template-type" src="initMetadata.js"/><br> <script language="javascript" location="template-type" src="links.js"/><br> </ruleset><br></data-capture-requirements> <br><br>[/HTML]<br>[/HTML]
Find more posts tagged with
Comments
cgoodall
Were you able to get this solved? I seem to be having the same problem.
Thanks
~Chris
jkm
where is the root-container of the dcr ...can you try by putting root-container as prefix while registering the event
kaalraa
Hi,
Could you please provide information about the environment you are working on? It can be different based on the environment.
Sailesh
one Issue I can think of is that you have missed out on root container information.
Can you also paste the starting part of your dct.