[FX.php List] Globals and FileMaker 7

Dale Bengston dbengston at preservationstudio.com
Tue Jan 4 13:00:39 MST 2005


I apologize if my post was too friendly and nuanced. Let me try again...

This thread has not gone off topic. Re setting globals from the web you 
can't get there from here. See earlier posts for workarounds.

Dale

On Jan 4, 2005, at 10:19 AM, Gjermund Gusland Thorsen wrote:

> Well it's stated how to do it 3 posts back from this one,
> and on HTTP://fxdialog.comitas.no
>
>
> On Tue, 4 Jan 2005 09:39:40 -0600, Dale Bengston
> <dbengston at preservationstudio.com> wrote:
>> This is the way globals have worked on hosted solutions forever. A
>> "default" may be set if the files are opened offline, and then
>> individual clients can set other values specific to their "session"
>> when the files are subsequently hosted client-server. In the
>> client-server world, this is actually a great and convenient way of
>> doing things, and very useful to the developer. But the web access is
>> creating a new "session" with FileMaker every time, and gets the
>> default values every time. Welcome to the stateless world of the web.
>>
>> My solution to this problem when using the web is to store the user's
>> globals somewhere else, or rethink your business logic to not use
>> globals. If you want to store a particular web user's preferences or
>> something, can use session variables as others have pointed out. For a
>> more persistent globals, you could write them in a separate table 
>> (each
>> user gets a record) or store them as cookies.
>>
>> Hope this helps,
>> Dale
>> --
>> Dale Bengston | Streamline Studio, LLC | 
>> dbengston at streamline-studio.com
>> Associate Member, FileMaker Solutions Alliance
>>
>> On Jan 4, 2005, at 9:22 AM, Michael Layne wrote:
>>
>>> The only way I can successfully edit globals and have my changes show
>>> up is to open the database locally with FMP, change the globals, and
>>> reopen the files in Server.  I wish this was different!
>>>
>>> It seems modifying the globals as a client (whether you're remote
>>> using FMP or XML (FX)), changes will never display via FX until
>>> they're made locally and closed/opened again.
>>>
>>> I'm looking for the same help.
>>>
>>> Michael Layne  :  9 degrees development  :  www.9degrees.com  :
>>> 404.226.7835
>>>
>>> On Jan 4, 2005, at 10:14 AM, Stephen Knight 1-800-353-7950 wrote:
>>>
>>>> Thank you Gjermund :)
>>>>
>>>> I understand how to store values as sessions, however it is not 
>>>> clear
>>>> how
>>>> this translates into the ability to edit a global field in the
>>>> database.
>>>> What needs to be done to allow editing of a field with global
>>>> storage? With
>>>> FileMaker 7?
>>>>
>>>> In Kindness
>>>> Stephen K. Knight
>>>> www.fmwebschool.com
>>>> 1-800-353-7950
>>>> Professional FileMaker Web Services
>>>>
>>>> ----- Original Message -----
>>>> From: "Gjermund Gusland Thorsen" <ggt667 at gmail.com>
>>>> To: "FX.php Discussion List" <fx.php_list at mail.iviking.org>
>>>> Sent: Tuesday, January 04, 2005 3:09 AM
>>>> Subject: Re: [FX.php List] Globals and FileMaker 7
>>>>
>>>>
>>>> <?
>>>> session_start(); // remember this line in order to hold on to your
>>>> session!
>>>> $_SESSION['mySession']['accountID'] =
>>>> $result['data'][$currentKey]['accountID'][0];
>>>> ?>
>>>>
>>>> <?
>>>> session_start(); // remember this line in order to hold on to your
>>>> session!
>>>> echo $_SESSION['mySession']['accountID'];
>>>> ?>
>>>>
>>>>
>>>> Gjermund Gusland Thorsen
>>>> Bjerkebo,
>>>> Strandebakken
>>>> 3295 HELGEROA
>>>>
>>>> +4790167484
>>>>
>>>> På 3. jan. 2005 kl. 21:46 skrev Stephen Knight 1-800-353-7950:
>>>>
>>>>> Wesley Miller has asked that I post this to the list:
>>>>>
>>>>> **I have a working fx.php/FileMaker 7 solutions which is connected
>>>>> and
>>>>> queries correctly. I have been able to edit a few fields in the
>>>>> database,
>>>>> but have been unable to edit a global field.
>>>>>
>>>>> Is there a way to edit a global field with FX.php?**
>>>>>
>>>>> I realize that you should store a global value as a PHP session, 
>>>>> does
>>>>> anyone
>>>>> have an example of this?
>>>>>
>>>>> In Kindness
>>>>> Stephen K. Knight
>>>>> www.fmwebschool.com
>>>>> 1-800-353-7950
>>>>> Professional FileMaker Web Services
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>
>>
>> _______________________________________________
>> 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