Andrea:

I think the problem may relate to how globals are treated by
Filemaker in multiuser mode: each client gets assigned their own
globals. Good if you are trying to setup certain features that are
customized for each client, bad for doing what you are trying to do.

I'm not clear on what problem you are trying to solve. So I'll try to
address your last questions:

>What is the correct way for storing a global variable across Server?

I'm not sure I understand this, so take this with grain of salt: one
way you could do it is to store a number in a particular record in a
related file and to refer to that number in a relationship or
alternatively, copy/increment/paste via a script.

>  Or is there a better way to create a unique number "on the fly"?

You could use the random number generator and set the field
validation to be unique only, then error trap for any problems it
generates.

Hope this helps,

bob


At 11:37 AM -0500 11/28/00, Andrea Barnhart wrote:
>Hello all those Filemaker experts out there,
>
>I have a problem that I hope you can help me solve. The basic requirement is
>to link certain name records by a group id. I have created a global field
>"gGroupCount" and a number field "GroupID"  I then have a script which
>creates a groupid by
>  1) Set Field ["gGroupCount","gGroupCount +1"]
>2) Set Field ["GroupID","gGroupCount"]
>
>This script works perfectly on a stand-alone version of Filemaker. (keeping
>track of the current group id and then adding 1 to create the next id).
>However when running on Filemaker server, whenever Ebase is closed and
>restarted, the global gGroupCount is reset; therefore not storing the
>previous group id.
>
>What is the correct way for storing a global variable across Server?  Or is
>there a better way to create a unique number "on the fly"?
>
>Any help would be greatly appreciated!!
>
>Andrea Barnhart
>Reliacom CSD
>www.reliacom.org
>(202) 797-9735 x351

--
-----------------------------------------------------------------------------
Bob Schmitt, TechRocks
38 South Last Chance Gulch - Suite 2A Helena MT 59601-5029
Voice: 406.442.3687             Email: [EMAIL PROTECTED]
eFax: 520.832.1047              Web: http://www.techrocks.org
----------------------------------------------------------------------------
ebase� - Free relationship management software for nonprofits
http://www.ebase.org
-----------------------------------------------------------------------------
Gravity can be your friend.

Reply via email to