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)
CGI script on click of Save button
hemranga
I have a requirement to Run a CGI Script on click of Save Button in a DCR. I have read some articles regarding the same in support site. can somone help me with some code sample for the same?
Version Teamsite 5.5.2 SOlaris
Thanks in advance
Find more posts tagged with
Comments
Bubas_IWOV
Hope this helps
create a js file with this:
init();
function init
{
IWEventRegistry.addFormHandler("onSave", onSaveForm);
}
function onSaveForm
{
IWDatacapture.callServer ("/iw-bin/custom/test.ipl");
}
Regards
Bruno
hemranga
Hey, thanks for the reply. I am using callSerer exactly as mentioned. But it does not seem to work. Before this line if i give an alert, then alert comes up, but the callServer command is not working. Anyidea where i am going wrong?
Thanks..
Adam Stoller
What does your callServer() call look like?
If you're calling a perl script (as shown in the example posted) are you sure that perl script is properly configured (#! line pointing to the full path to iwperl), executable (chmod 755), syntactactically correct (no errors), and logically correct (works correctly when executed as a CGI through other means)?
The above is assuming Unix - if your server is Windows it's pretty much the same, except that I believe the callServer would either have to include the full path to the perl engine prior to the script or it would have to be calling a CGI wrapper for the ipl script [copy show_env.cgi to yourscript.cgi].
--fish
(Interwoven Senior Technical Consultant)
hemranga
Hey..Thanks a LOT.....It waorks now. It was the permission problem.
Thanks again..Hemanth