Topic Options
Rate This Topic
#134540 - 05/16/06 03:00 PM variables getting blanked out
software_architect Offline
newbie

Registered: 03/11/04
Posts: 26
Loc: VA, US
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$

Top
#134541 - 05/16/06 09:02 PM Re: variables getting blanked out [Re: bsiebert]
software_architect Offline
newbie

Registered: 03/11/04
Posts: 26
Loc: VA, US
Found the problem.
Set the perl code portion to a variable and used the variable instead of direct perl code at the PROCESS command.
Post solved...

Top