I have noticed that to keep things working the way I expect them to, that it really helps (with Witango 5.5) to quote like crazy, especially in filter actions.

For example,

<!-- Make array of Todays selected records -->
<@ASSIGN NAME="CurrSelected" VALUE='<@Filter ARRAY="SelectedALL"
EXPR="#DayOfYear=@@user$DayOfYear" SCOPE="domain">' SCOPE=domain>


Should be quoted like this (in the expression part of the filter statement). .. this appears to be really critical. You did this correctly in the array of selected records, but not in the Todays selected records.

<!-- Make array of Todays selected records -->
<@ASSIGN NAME="CurrSelected" VALUE='<@Filter ARRAY="SelectedALL"
EXPR="#DayOfYear= '@@user$DayOfYear' " SCOPE="domain">' SCOPE=domain>

--------
Parenthetically, another place where you have to be really careful is in <@if statements.

<@if " '<@var request$this>' != '<@var request$that>' ">whatever</@if>
works far better than
<@if "<@var request$this> != <@var request$that>">whatever</@if>


Wayne Irvine wrote:
I've been having a hell of a time with a site I'm developing and am
wondering how much is bugs and how much is me.

The first thing the site does is load all record into an array (about
10,000) then it makes other arrays such as records made today and records
that are 'selected'. There is also one that builds a list of days that
records have been made.

<!-- All records -->
<@ASSIGN NAME="FullList2" VALUE=@@local$ResultSet SCOPE=domain>

<!-- Make distinct days list -->
<!-- Column 14 is a day number -->
<@ASSIGN NAME="DayList2" VALUE='<@DISTINCT ARRAY="FullList2" COLS="14 NUM"
SCOPE="domain">' SCOPE=domain>
<@SORT ARRAY='DayList2' COLS='14 DESC NUM' SCOPE=domain>

<!-- Make array of 'Selected' records -->
<@ASSIGN NAME="SelectedALL" VALUE='<@Filter ARRAY="FullList"
EXPR="#16='yes'" SCOPE="domain">' SCOPE=domain>

<!-- Make array of Todays selected records -->
<@ASSIGN NAME="CurrSelected" VALUE='<@Filter ARRAY="SelectedALL"
EXPR="#DayOfYear=@@user$DayOfYear" SCOPE="domain">' SCOPE=domain>

The problem is, it works some times and not others. The results of the
FILTER and DISTINCT tags seems intermittent.

Have others seen this problem?

Is there a beta that addresses these (searched the Witango site to no
avail).

Wayne Irvine

                  Byte Services Pty Ltd
               http://www.byteserve.com.au/
                  [EMAIL PROTECTED]
   Ph 02 9960 6099   Mob 0409 960 609   Fax 02 9960 6088

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to