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)
error when passing variable to cgitask
manju166
Is it possible to pass a variable in cgi task. here is my code
<cgitask lock = "f"
name = "editdcr"
owner="__TAG__('iw_user');"
description = "select the dcr to update">
<areavpath v="__INSERT__($area_vpath);"/>
<successors>
<successorset description="Success">
<succ v="CopyEditFile"/>
</successorset>
</successors>
<command v="test.ipl $iw_type"/>
<activation>
<pred v="GetLatest"/>
</activation>
</cgitask>
I have a error when trying to use the above script, If i remove the $iw_type, my workflow works otherwise it is hanging after i come to cgitask.
error:
Teamsite Wrapper
error trying to open \\loudcm1\iwtest\iw-home\httpd\iw-bin\test.ipl $iw_type[2]
I think there is a syntax error in my script, Can anyone help me.
Thanks in Advance
manju
Find more posts tagged with
Comments
Migrateduser
You can't pass variables as parameters to your cgitask scripts. Instead, assign your data to a workflow or task variable and in your script, read in the value of the workflow/task variable.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
manju166
In my update workflow i have a cgi task where it lists the dcr to update.
Attached is my test.ipl, cgitask, output including logfile.
There is no result in my output everything is empty
If I hardcode my $apath i have the list of the dcr's but everything else is null
I have commented out the hardcode part in my script.
Can anyone please help me
Thankyou
Manju
Migrateduser
There are several errors in your code. Cgitask scripts do not receive the same parameters that externaltasks do in
@ARGV
. You have to look at the form values in a cgitask script to get the task ID and other pertinent info. Also, if you are going to embed perl variables in your wft XML, you need to use the INSERT directive. When you instantiate a task object, you need to use WFtask.pm to do that. Those are the glaring ones - I have a feeling there are more.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
manju166
I have corrected all my errors, I have my Taskid, workflowid and they are printing correct values.
I cannot get my selected value into a varialbe,
I tried using javascript but it dosen't even print the "alert message"
Can anyone please help me to bring the selected value into a variable.
I tried getting the selected value from the javascript variable, dont know wether it is allowed or not.
Please help!!!!!! -- Attached is my script
Thanks
Manju