You might also try removing the @@ from
<@ROWS ARRAY="@@domain$vDepartments">
and
<@FILTER ARRAY="@@user$vCourses" …
Dave Shelley
-----Original
Message-----
From: Steve Smith
[mailto:[EMAIL PROTECTED]]
Sent: February 9, 2004 9:58 AM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk: Meta tag Fiter
You might want to try assigning <@COL 1> to a
request variable prior to the <@FILTER>. There have always been problems
with Witango/Tango getting confused when dealing with things like this. I refer
to them as nested arrays.
The code I'm suggesting would be like this:
<@ROWS ARRAY="@@domain$vDepartments">
<@ASSIGN NAME="request$r_tempcol1" VALUE="<@COL
1>">
<@FILTER ARRAY="@@user$vCourses" SCOPE="USER"
EXPR="#3 =<@VAR NAME='request$r_tempcol1'>">
Hope this helps,
Steve Smith
Oakbridge Information Solutions
Office: (519) 624-4388
GTA: (416) 606-3885
Fax: (519) 624-3353
Cell: (416) 606-3885
Email: [EMAIL PROTECTED]/color>
Web: http://www.oakbridge.ca/color>
On Monday, February 9, 2004, at 09:33 AM, Walker, Buddy wrote:
Has anyone experienced problems with the <@FILTER>
meta tag? We are trying to filter an
array to return only courses for a specific department for grouping purposes.
The following
is the statement that is returning the error:
<@FILTER ARRAY="@@user$vCourses" SCOPE="USER"
EXPR="#3=<@COL 1>">
Here is an example of how we are using it:
<SELECT NAME="Course" SIZE="1">
<@ASSIGN ARRAY="vCourses2" VALUE="@@domain$vCourses"
SCOPE="USER">
<@ASSIGN ARRAY="vCourses" VALUE="@@domain$vCourses"
SCOPE="USER">
<@ROWS ARRAY="@@domain$vDepartments">
<@FILTER ARRAY="@@user$vCourses" SCOPE="USER"
EXPR="#3 =<@COL 1>">
<OPTION VALUE="NOGOOD"><@COL 2></OPTION>
<@ROWS ARRAY="@@user$vCourses">
<OPTION VALUE="<@COL
1>"> <@COL 2></OPTION>
</@ROWS>
<@ASSIGN ARRAY="vCourses" VALUE="@@user$vCourses2"
SCOPE="USER">
</@ROWS>
</SELECT>
And the error(s) that we are getting:
An error occurred while processing your request:
File: away.taf
Position: Get_Student_Info
Class: Internal
Main Error Number: -18
Error during _expression_ evaluation.
Illegal symbol in statement ["<@__REF name=vCourses
[EMAIL PROTECTED]>[1,3] =CCM]
File: away.taf
Position: Get_Student_Info
Class: Internal
Main Error Number: -614
An array was expected as a parameter.
In @FILTER, ARRAY attribute.
It seems to be an issue with the # symbol in the EXPR statement, but the
documentation describes this
as the proper way to indicate the column. We also tried the example in the
documentation and found the
same problems.
Thanks.
Buddy
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf