Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8468 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I created a database that included both global text fields and regular text fields. I placed the database onto a FileMaker Server. As I enter data (records) into both of these fields everything appears to be entering properly. I then close the database. The next time I launch the database, from the server, the data from the global text fields has disappeared. The data in the regular text fields is still there. Any explanations?

Posted

This is not a FM error. Global fields should probably be called "local variables". Globals are unique to each user/session. When you move a database to server, the globals retain the last value they had when the database was opened in single user mode on a normal version of FM. When a user opens a file hosted on server, they initially get this set of globals. If the user changes the globals and quits from FM, the globals are gone. Globals are NOT shared values as are fields in records.

If you need to store values like "last check number used", you will have to use a single records file. Also be very careful with multi-user issues when sharing common values that are used and changed. If user A gets last check number 101 prints a check and writes back 101 and user B is doing the same thing at the same time, you may print two check 101's. Protecting against these types of locking issues is up to the designer.

-bd

  • Newbies
Posted

Thanks for the quick reply. However, if I can't use a global field with a FileMaker Server, what would be the best solution to share the data for all of my records?

Posted

I'm not sure what part to explain, but here goes:

1) Create a separate file and call it "Preferences".

2) Create fields in this file for values you need to store. For example, one field could be "LocalTaxRate".

3) Maker sure there is only one record in this file, you probably only have one local tax rate! Use passwords to disable the ability to create or delete records.

4) Create a field called "Constant" (I personally use "iOne" as a cute name) define the field as:

Constant (calculation, number, indexed) = 1

5) Create the field Constant, defined in the same way in all of your files.

6) Create a relationship between and file that has common values to store and the Preferences file by creating a relationship with Constant <---> Constant.

7) Use this relationship to access fields in the Preferences file.

Better?

-bd

This topic is 8468 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.