[FX.php List] Where are my value lists...?

Steve Winter steve at bluecrocodile.co.nz
Wed Feb 6 12:27:58 MST 2008


Hi Joel,

Thanks for that... still seems pretty weird that I have to make a second
query to the exact same layout, especially since the returned array from the
previous find includes an empty node called 'valueLists'... I guess it makes
sense to Chris ;-)

Cheers
Steve 

-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Joel Shapiro
Sent: 06 February 2008 19:09
To: FX.php Discussion List
Subject: Re: [FX.php List] Where are my value lists...?

Hi Steve

Yep, FMView() is necessary to pull value lists.

 From FXDataFormat.pdf:

___$ReturnedData['valueLists']___________________
print_r($ReturnedData['valueLists']);
print_r($ReturnedData['valueLists']['myValueList']);
echo($ReturnedData['valueLists']['myValueList'][0]);
When an FMView() action is called, any value lists on the layout specified
will be returned in this element of the returned data array.  Please note
that this element is only returned from an FMView() action; you may wish to
perform a separate FMView() to pull the value lists for the layout in your
current search request.  The 'valueLists' section contains two sub-arrays.
The first sub-array uses the value lists' names as indexes, while the second
is numbered from zero.  A typical use might be to step through the desired
value list using php's foreach() contruct.  Please see FXExamples.php for a
complex demonstration of how the contents of this element can be used.

-Joel


On Feb 6, 2008, at 10:57 AM, Steve Winter wrote:

> Hmmm... okay so I sort-of found them... if I perform a Find on the 
> layout they are not returned, if I perform a View they are... seems a 
> little odd to me...??
>
> Thanks
> Steve
>
> From: fx.php_list-bounces at mail.iviking.org [mailto:fx.php_list- 
> bounces at mail.iviking.org] On Behalf Of Steve Winter
> Sent: 06 February 2008 18:54
> To: 'FX.php Discussion List'
> Subject: [FX.php List] Where are my value lists...?
>
> Hi all,
>
> I've never used values lists previous that were actually defined as a 
> list, I've always stored then in a table, and used FX to get the data 
> directly...
>
> I'm currently working on someone else's database, and they have a 
> number of valuelists defined in the database. The preference is to use 
> them 'as is', however the valuelists component of the returned array 
> is empty... what am I missing...?
>
> Thanks
> Steve
>
>
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

_______________________________________________
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