[FX.php List] How to use SetFMGlobal
Jon Montgomery
fxphp at igsmasouth.org
Tue May 10 08:51:37 MDT 2011
Malcolm,
Globals do not work to well on the web. It has been a long while since I tried using one. It did not work and many people have told me that they just do not work on the web. I found ways around it to do the same thing.
Sorry that I do not remember all the technical ways of explaining it, but the global is always reset to its default value with each call to the database the global you would set via the web will disappear right with each call to the database via the web.
Not a very well explained/written explanation but that is the way I understand it.
HTH
Jon Montgomery
On May 10, 2011, at 9:31 AM, Bob Patin wrote:
> Malcolm,
>
> I've not used that function, but I would guess, as with all of the FX functions, that it's fairly straightforward.
>
> Do you have the global on your web layout? If not, there's your problem.
>
> After you set the field, try echoing an error message:
>
> echo $queryResult['errorCode'];
>
> If it's a 102 error then the field isn't on the web layout; anything other than a 0 means something's amiss.
>
> HTH,
>
>
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> iChat: bobpatin
> FileMaker 9, 10 & 11 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --
> Expert FileMaker Consulting
> FileMaker Hosting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting:
>
> On May 10, 2011, at 3:37 AM, Malcolm Fitzgerald wrote:
>
>> I'm new to FX.php
>>
>> I can obtain results from my database on a simple search. Now I would like to extend the results by performing a script which relies on a global field. Whenever I include SetFMGlobal I don't get a result. If I comment out the line I do get a result, though my script returns the wrong set because the global is empty.
>>
>> Any hints appreciated.
>>
>> Malcolm_______________________________________________
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20110510/82e17d28/attachment.html
More information about the FX.php_List
mailing list