I have a Active Link that executes about 3 perl statements with variables defined in them. I notice that when the form is rendered thru the Mid Tier a Javascript error gets thrown:
Error: missing ] after element list
Line: 263, Column: 59
Source Code:
function ARAL246(){if ((((((((((((EQ(ARKWGetByIdx(10), new CharType("SET"))) && (EQ(F(7).G(), new EnumType(0,"0")))) && (EQ(F(536871012).G(), new EnumType(1,"1")))) && (LIKE(F(536871286).G(), new CharType("CSR%")))) && (NE(F(536871284).G(), Null))) && (NE(F(536871285).G(), Null))) && (NE(F(536871254).G(), Null))) && (NE(F(536871287).G(), Null))) && (NE(F(536871288).G(), Null))) && (NE(F(536871289).G(), Null))) && (NE(F(536871290).G(), Null))) && (NE(F(536871301).G(), Null))){F(536871223).S((ARACTServerProcess("nsm3_act_gms_set_ce_times_2`!",0,0,536871223,[],[var1) = split(/\n/,@ARGV[0]);(,var3,,var1);print timelocal(,var6, ,var2, ,var4);' ])));F(536871242).S((F(536871289).G()));F(536871243).S((F(536871290).G()));F(536871223).S(ADD(F(536871223).G(), F(536871243).G(), 2));}}
Why would this be a problem when the same active Link executes ok in the user tool?
The actual script being:
$PROCESS$ @@:perl -MTime::Local -e '($var1) = split(/\n/,@ARGV[0]);($var2,$var3,$var4) = split(/\//,$var1);print timelocal($var5, $var6, $var7, $var2, $var3 - 1, $var4);' $CE Site End Date$