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)
passin values to cgi-callout
carletto
Hi
is it possible passing value to tag inline command?
in my DCR File I put this code:
________________________________________________
<cgi-callout url="/iw-bin/iw_cgi_wrapper.cgi/myscript.ipl?item1=value1&item2=value2" label="mylable" window-features="my features"/>
__________________________________________________
in my script I put this code
__________________________________________________
use TeamSite::CGI_lite;
use CGI qw(:standard);
# begin the cgitask
$|=1;
$cgi = TeamSite::CGI_lite->new();
$cgi->parse_data();
my $form_name = $cgi->{'form'}{'iw_form_name'};
my $element_name = $cgi->{'form'}{'iw_callback_var'};
my $user_name = $cgi->{'form'}{'user_name'};
my $item_name = $cgi->{'form'}{'iw_item_name'};
my $item_description = $cgi->{'form'}{'iw_item_description'};
my $dcr_name = $cgi->{'form'}{'iw_object_name'};
my $workarea = $cgi->{'form'}{'area_path'};
my $dcrtype = $cgi->{'form'}{'iw_dcr_type'};
use DB_bpmit;
use CT_bpmit;
use CGI;
CT_bpmit::init();
DB_bpmit::init();
print "Content-type: text/html \n\n";
my $req_action = new CGI;
my $item1 = $req_action->param('item1');
my $item2 = $req_action->param('item2');
print $item1;
print $item2;
_________________________________________________
but I dosn't visualize any values.
Thk
Carlo
thk
Find more posts tagged with
Comments
james1
Why did you create a new CGI object for item1 and item2? Try just using $cgi instead of $req_action.
-- James
--
James H Koh
Interwoven Engineering