[FX.php List] [OFF] How does the List function work?

Dennis Dalziel dennis at gandrpublishing.com
Tue Nov 27 13:39:07 MST 2007


If you do want to use the list function, the 2 tables need to be related.
The list function will return only values in those fields that are related.
Kind of like a portal but the values go into one field. The list function
will separate each value with a carriage return.

Dennis Dalziel


-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Carl Anderson
Sent: Tuesday, November 27, 2007 2:18 PM
To: fx.php_list at mail.iviking.org
Subject: [FX.php List] [OFF] How does the List function work?

Good day, list:

I'm trying to get the contents of a single field across all records in a
layout, and put those values into a list in a single field in a different
table.  In other words, the field on all records is "exam1" and I want the
"exam1rawscores" field in a separate layout to be something like this:

10,9,9,5,10,3,1,10,6,7,8,2

Heck, the commas aren't even important--I'd be fine with the carriage
returns that (I believe) List() delivers.

Which leads to my question: How can I get List() to do what I want?  Or am I
going about this all wrong?

The function reference isn't terribly clear to me, someone who hasn't done
much scripting before.

Sorry for the off-topic nature of this.  I'd do all this calculatin' in
FX.php, but sadly there's too much data to pull in.

-- 
Carl Anderson 
Technical Support Analyst
Distance Learning 
Herberger College of the Arts
Arizona State University
http://herbergeronline.asu.edu 

_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list




More information about the FX.php_List mailing list