If your main array is a resultSet from the database. Then just add a dummy
column in the select clause.

Like "(1*1) as DummyColumn"
Then you have a column in the array that you can change with the link to the
other array

If you used the select action, then right click on the columns and add
custom column.

Ben Johansen

-----Original Message-----
From: McGriff, Gary [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 04, 2005 8:03 AM
To: '[email protected]'
Subject: Witango-Talk: Array Question

This may have been solved before, if so, my apologies.

I have an array with names, addresses, etc.  I want to sort it by last name.
I can get this accomplished, but this would lose the connection with another
array that has a column I need in it.  This array is assorted by a unique
number from that is tied to the first array's names.

I would like to add the one column from the second array to the first array.

Here's what I've got so far:

<@ASSIGN NAME="temp1" VALUE="@@resultset" SCOPE="request">

(One row)

<@ADDROWS ARRAY="array_2" VALUE="@@request$temp1" SCOPE="user">

(Building array with the one row at a time)

I've tried to add the other column to this array this way:

<@ADDROWS ARRAY="array_2"
VALUE="@@request$temp1,@@request$array_1[@@counter,column1]" SCOPE="user">

Ideas?  Suggestion?  Where am I messing up?

Thanks in advance.


________________________________________________________________________
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