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)
datacapture.cfg won't put a value in the text box
mpgxsvcd
I am trying to get the teamsite built in Metadata capture function to work with the “read from a flat file” example_datacapture_callout.ipl script. I looked through the example_datacapture_callout.ipl code and I could not find out how this script transfers the selected value back to the text box on the original form. I commented out the select statements and removed the comments from the callout but I can not get the callout to write the value of my selection to the textbox. Has anyone else been able to get this cgi callout to work properly? Here is that section of the datacapture.cfg file that I am using.
<item name="Taxonomy Terms">
<!-- <database data-type="VARCHAR(40)" />
To use the example callout,
1. Comment out this select element.
2. Uncomment the text element.
<select>
<option label="Internet - Financial" value="financial_internet" />
<option label="Internet - Manufacturing" value="manufacturing_internet" />
<option label="Internet - Services" value="services_internet" />
<option label="Extranet - Tier 1" value="tier_1_extranet" />
<option label="Extranet - Tier 2" value="tier_2_extranet" />
<option label="Extranet - Tier 3" value="tier_3_extranet" />
</select>
-->
<text>
<callout type="cgi"
label="Taxonomy"
url="/iw-bin/iw_cgi_wrapper.cgi/ example_datacapture_callout.ipl/metadata-category-options.txt" />
</text>
</item>
Find more posts tagged with
Comments
james1
It would be helpful if, within your problem statement, you indicated the version of TeamSite that you are using.
The data is sent from the callout window to the main window via JavaScript in the callout window. You can see that JavaScript in the print_header() subroutine of example_datacapture_callout.ipl.
-- James
mpgxsvcd
I am using Teamsite 5.5.2. What is the specific line that returns the value to the text box?
Adam Stoller
Just to be sure ... (and perhaps to help someone else help you) ...
Are you talking about
iw-home
/local/config/datacapture.cfg
or
/default/main/.../templatedata/category/type/datacapture.cfg
?
--fish
(Interwoven, Curriculum Development)
mpgxsvcd
Yes I am talking about the iw-home/local/config/datacapture.cfg file. I can't see how the program actually writes the data to the form that issued the callout and it doesn't seem to work.
james1
The exact line that sets the value is:
calloutForm.elements
.value = selectedValue;
However, it seems that there is a bug in TS5.5.2 metadata capture, and this does not work.
I believe that you can make it work by patching IWHOME/httpd/iw-bin/metadata*view.itml thusly:
188c188
< <INPUT TYPE="HIDDEN" NAME="iw_form_name" VALUE="metadataForm">
---
> <INPUT TYPE="HIDDEN" NAME="iw_form_name" VALUE="window.opener.top.document.metadataForm">
I will enter a bug in our bug system for you.
-- James
james1
Actually, you only need to do this to metadataruleview.itml only. metadatafileview.itml doesn't have this problem.
-- James
mpgxsvcd
Is there a particular place that I should put this code in the metadata*view.itml files? Thanks for the help.
Adam Stoller
Looking at the information that James provided - it's on (or around) line 188 of the one file that would need to be modified (i.e. not inserting any new lines of code, just changing the end of one of the existing lines of code).
--fish
(Interwoven, Curriculum Development)
mpgxsvcd
James,
Thanks for your help! That worked. I never would have found that without your post.