[FX.php List] Problem with Global fields

Roger Price rp272 at cam.ac.uk
Fri Apr 13 05:26:47 MDT 2007


I experienced a problem recently with an FMP calculation field that included a global value as an option in an 'if' statement.

The field correctly displayed in FMP but the 'global' option did not show up when selected by FX.php (the other other did!).

I was reccommended to get the values of both field found by FX.php and use PHP to make the correct selection.

This worked!

I now have another 'global' field that I want to do something similar with but the value of the 'global' field appears to be blank. If I use 'if (isset($value['global_field'][0])){echo "set";}else{echo"unset";}' it returns "set" so there must be something there - just not the value I expect.

To overcome this problem I have changed the global field type to 'calculation' and added the value required. There are not a great number of records so the additional overhead is not excessive in this case. However I would like to know what is happenning with these global fields.

In my original calc field I substituted a text string for the global field which worked just fine, however reverting to the 'global' resulted in a blank field!

Any ideas?

Roger

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070413/4dc2e2f5/attachment-0001.html


More information about the FX.php_List mailing list