Customer Support at [EMAIL PROTECTED] wrote:
> The results of a search action by default come back in the variable
> request$ResultSet
Yep, I'm assigning that to a VAR.
> You can reference the column by name like so:
>
> <@ROWS>
> @@request$ResultSet[<@CURROW>,ColName]
> </@ROWS>
>
> You can do this with any array if you assign names to the elements in
> row 0
>
> <@ASSIGN request$MyArray[0,1] "ColName1">
> <@ASSIGN request$MyArray[0,2] "ColName2">
> <@ASSIGN request$MyArray[0,3] "ColName3">
>
> Once you have done this you can reference the columns by name.
After assigning the ResultSet to a VAR (I usually assign it to a User VAR
but in this case it's Local) I display @@local$detail[0,*] in a debug and it
shows that it has the headers.
But then when I call the elements via their names in a ROW it fails.
Here's the actual code:
<@ASSIGN NAME="CurrentListings" SCOPE="USER" VALUE=@@local$ResultSet>
<@ASSIGN NAME=detail SCOPE=LOCAL VALUE='<@FILTER ARRAY=CurrentListings
EXPR="#1=<@ARG layout_0_uid1>" SCOPE=USER>'>
<@DEBUG>
@@local$detail[0,*]<br> < Shows headers
@@local$detail<br> < Shows single row array
</@DEBUG>
<@ROWS ARRAY=detail>
@@local$detail[<@CURROW>, "Price"] < Shows I don't know what I'm doing!
</@ROWS>
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