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

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

Recommended Posts

Posted

Have a solution hosted on a Filemaker Server 8.

Have a table (Constants) used to hold global fields.

One record. When I open layout on hosted solution and enter data in a field all is well. When I close the solution and reopen it the new data does not save. If I open a copy of the same file as a local file and enter data and close then reopen it the new data is there.

Why?

Posted

Globals are only stored in the database when the file is opened in single user mode (non-hosted)

Some developers use this effect to store global variables or 'default values' but down side is that you have to take the system off line to modify the values.

The better approach is to use a preferences table with one record and real fields,

then transfer these values to a variables or globals on startup.

Posted

Globals are only stored in the database when the file is opened in single user mode (non-hosted)

Some developers use this effect to store global variables or 'default values' but down side is that you have to take the system off line to modify the values.

The better approach is to use a preferences table with one record and real fields,

then transfer these values to a variables or globals on startup.

Thanks for the quick response.

I would add a preferences table and in the startup script, I 1)capture that data as global variables or 2)use the preferences table to set the data in the global fields?

Posted

I prefer global variables unless some data is used for user interface like images etc. you could use global fields for them - or if you need some global key field to be used for a relationship.

here was one technique.

http://www.filemakermagazine.com/videos/using-global-graphic-variables.html

This topic is 6086 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.