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)
Calling javascript in metadat capture form
deeps79
Hi,
I need to perform certain validations in my metadata capture form. For that, I need to call javascript function inside the datacapture.cfg(inside iw-hom\local\config).
I tried that but the function does not get called. Any pointers ??
TIA,
Deepa
Find more posts tagged with
Comments
Dwayne
FormAPI is not supported for metadata capture. At least, not for versions up to and including TeamSite 6.1. I think I remember hearing that it's supported in 6.5, but I'm not sure of that.
--
Current project: TS 5.5.2/6.1 W2K
gzevin
i think it will be open in 7,. I have not tried 6.5, but my gut feeling is that metadata capture has not been touched in 6.5
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Migrateduser
It is not in 6.5.
--Daniel
deeps79
thanks ,
Yes it is a version issue.
DavidMusser
Anyone had any luck in hacking/getting this to work? I would like to pre-populate a field.. expiration date... when the metadata capture page loads.. that is if there isn't already a value in there. So I figure I could use the validation for this?
David R Musser
Eye Street Software
540-542-5257
dmusser@eyestreet.com
Win2k, TS 6.5 SP1, OD 6.01
Adam Stoller
What you need to do is have your own script called instead of the OOTB metadata capture CGI -- your script would take care of prepopulating values (using
iwextattr
and then call the real metadata capture CGI. The last part is something like:
print "Content-type: text/html\n\n";
print join("",
qq(<html>\n),
qq(<head>\n),
qq(<meta http-equiv="refresh"),
qq(content="0;URL=$strUrl),
qq(?$strQueryParams),
qq(&donePage=/iw-cc/teamsite/common/refresh_parent_and_close_window.html">\n),
qq(<title>Prepopulating metadata form...</title>\n),
qq(</head>\n<body>\n</body>\n</html>\n));
where
$strUrl
is
/iw-bin/iw_cgi_wrapper.cgi/iwmetadata.cgi
and
$strQueryParams
is of the form
vpath=/default/main/.../filename
(
make sure to replace any white-space characters with
%20
)
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
DavidMusser
You must think I'm a lot better coder than I am ;-) Thanks fish!!!
David R Musser
Eye Street Software
540-542-5257
dmusser@eyestreet.com
Win2k, TS 6.5 SP1, OD 6.01