This is a bug we have been aware of for awhile (I thought we'd reported it, but perhaps not). With server 5.5 (Mac OS X), sorts of user scoped arrays DO NOT WORK. However, if you take a user scoped array, and change it to request scope, it will sort. So we have to do a work-around to request scope and then back to user scope for our sorts...

E.g.,

<@assign name="request$sortfix" value="<@var user$thisarray[*,*]>">
<@sort array='request$sortfix' cols='1,2'>
<@assign name="user$sorthisarray" value="<@var request$sortfix[*,*]>">

On Nov 16, 2005, at 9:40 PM, Customer Support wrote:

Does this work on your Witango Server 5.5.009?

<@purge scope="user">
<@define user$test type="array" cols="1" rows="0">
<@assign name="test" scope="user" value='<@ARRAY VALUE="343;33;1;32;34;67;">'>
User Unsorted: @@user$test<br />
<@sort scope="user" ARRAY="test" COLS="1 ASC">
User Sorted: @@user$test<br />

<hr />
<@PURGE scope="user">
<@define request$test type="array" cols="1" rows="0">
<@assign request$test '<@ARRAY VALUE="67;343;33;1;32;34;">'>
Request Unsorted: <@var request$test><br />
<@sort array=request$test cols="1 num asc">
Request Sorted: <@var request$test><br />
<@assign user$test "<@var request$test>">
<@define request$test type="array" cols="0" rows="0">
<hr />
Request: <@var request$test><br />
User: <@var user$test>


This code works on OS X 10.4.3 and Witango Server 5.5.009 in our lab.



Witango Support



On 17/11/2005, at 12:47 PM, MJPinckard wrote:

darn! must be OS X specific... definitely doesn't work on server version 10.4.3 with Witango 5.5.009

even tried restarting the server just in case that might help.

sigh...

thanks anyway.

Maggie

Robert Garcia wrote:

I just threw it on a test taf. Even this works on my server, tried several variations. It worked. Windows 2003, 5.5.009

   <@assign name="test" value='<@ARRAY VALUE="1;32;34;67;343;33;2">' scope="user">

   @@user$test

   <@SORT ARRAY="user$test">

   @@user$test


-- 

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040

On Nov 16, 2005, at 5:02 PM, MJPinckard wrote:

   <@assign name="test" value='<@ARRAY VALUE="1;32;34;67;343;33">' scope="user">


   @@user$test


   <@SORT ARRAY="user$test" COLS="1 ASC">


   @@user$test


________________________________________________________________________
 
________________________________________________________________________

________________________________________________________________________
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