Hi all,I've got two custom menu items which trigger two scripts which only difference is one variable. So the question is is there a way to pass over a variable or set a variable in the ipl bases on from where it was called. I've tried to add a variable at the end of the call in ui_custom.xml but seem not be able to retrieve in in the calling ipl. RegardsMlink id="deploythesite_action_item.link" label="Deploy the site full" description="An administrator of the site can deploy the site to Front End" url="/iw-bin/wdpro_menu.ipl/deploy_all_action.ipl?mode=full" target="_blank" operationID="deploythesite.op" windowFeatures="scrollbars=1,resizable=1,width=300,height=200" />Teamsite 6.1 on Solaris
like that?url="/iw-bin/wdpro_menu.ipl/MYWRAPPER.IPL/deploy_all_action.ipl"Regards
url="/iw-bin/wdpro_menu.ipl/MYWRAPPER.IPL deploy_all_action.ipl[color=Black]Pass your ipl filename as paramenter.[/color]
I was trying to retrieve it like shown below (mode1 and mode2 are there for tests) but neither worked. I must confess that I'm not a real hero when it comes to cgi.....use TeamSite::CGI_lite;use POSIX qw(strftime);use TeamSite::CGI_lite;use TeamSite::Config;use XML:OM;my $iw_home = TeamSite::Config::iwgethome(); #Location iw-homemy $cgi = TeamSite::CGI_lite->new();$cgi->parse_data();#get infos and define variablesmy $area = $cgi->{'form'}{'area_path'};my $mode1 = $cgi->{'form'}{'mode'};my $mode2 = $cgi->{'mode'};
Not sure if this is the way to be but I got it running:ui_custom.xmlurl="/iw-bin/iw_cgi_wrapper.cgi/deploy_diff_action.cgi?mode=differential"deploy_diff_action.cgi#!/iwenv/iw-home/iw-perl/bin/iwperluse TeamSite::CGI_lite;use POSIX qw(strftime);use TeamSite::Config;use XML:OM;my $cgi = TeamSite::CGI_lite->new();$cgi->parse_data();#get infos and define variablesmy $area = $cgi->{'form'}{'vpath'};my $mode = $cgi->{'form'}{'mode'};So I had to rename my script from ipl to cgi and wrap it with iw_cgi_wrapper.cgi.CheersM