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)
custom menu item launching other cgi
sara
I have created a cgi for a custom menu item with a form that launches another cgi. All works fine in WebDeskPro, but I receive an error when submitting the form in Webdesk.
Do I have to add something like the "","500" you have to add in iw.cfg?
Here is my form:
print "<FORM name=\"myform\" action=\"iw_cgi_wrapper.cgi/$deletecgi\" method=\"POST\">\n";
print $page->hidden(-name => 'wftodelete', -value => $wfnb);
$session = $page->param('session');
print $page->hidden(-name => 'session', -value => $session);
print "<INPUT TYPE=\"submit\" value=\"delete this job\"></FORM>";
Find more posts tagged with
Comments
Migrateduser
What error are you getting? Actually, without 500 in your iw.cfg you will not even see the menu item in WebDesk.. are you able to see the menu item?
james1
I don't know if this is the cause of your problem, but you probably should make your form action:
<form action='/iw-bin/iw_cgi_wrapper.cgi/$deletecgi">
I think that the relative URL could get you into trouble.
-- James
--
James H Koh
Interwoven Engineering
sara
I tried:
print "<FORM name=\"myform\" action=\"$iwhome/httpd/iw-bin/iw_cgi_wrapper.cgi/$deletecgi\" method=\"POST\">\n";
with $iwhome the path to the iw-home directory; but this still results in a page not found.
also
print "<FORM name=\"myform\" action=\"
http://usu0452d.be.fortis.bank/$iwhome/httpd/iw-bin/iw_cgi_wrapper.cgi/$deletecgi\"
method=\"POST\">\n";
results in page not found.
I also tried the following (as I used for the iwwft_instantiator):
print "<FORM name=\"myform\" action=\"
http://usu0452d.be.fortis.bank/$iwhome/httpd/iw-bin/iw_cgi_wrapper.cgi/$deletecgi\"
method=\"POST\">\n";
this opens a login window, and after logging in (remember I already was logged in to launch the menu item) the other cgi is found, but parameters entered in the form are not passed to this other cgi.
No results yet, any other hints?
sara
i can see the menu item in both interfaces, but the cgi launched by a form in that menu item is found in the webdeskPro interface, but results in a page not found error in the webdesk interface.
sara
sara
I have tried this (as is used for the iwwft_instantiator):
print "<FORM name=\"myform\" action=\"
http://usu0452d.be.fortis.bank/iw/webdesk/login/iw-bin/iw_cgi_wrapper.cgi/$deletecgi?iw_session=$session&wf_todelete=$wfnb\"
method=\"POST\">\n";
i also had to change the use of the parameters in the other cgi:
in stead of using $cgi->param('iw_session') like stuff, i used the CGI_lite functionalities:
$cgi = TeamSite::CGI_lite->new();
$cgi->parse_data();
$wf_todelete=$cgi->{form}{wf_todelete};
This works, but I still have to login when passing to the second cgi. Could anyone give a hint how to bypass this?
Sara