Jump to content
Sign in to follow this  
Toddski

Global Field Problem

Recommended Posts

I inherited support for a database and a user deleted some data that I then restored from a backup.

Well, now I have a global field that has data immediatly when I open the database. I ran a design report and that field is not set until you run the script set for exiting the database.

Why does the global field now open with a default value?

Thanks

Todd

Share this post


Link to post
Share on other sites

See if this FAQ helps.

http://faq.filemakermagazine.com/index.php/Global_fields

Share this post


Link to post
Share on other sites

Well it helped slightly with my understanding however this database is now hosted in a FM server so the session ends when they log off and the globals should reinitialize when they start again. For some reason the globals are not reinitializing.

Share this post


Link to post
Share on other sites

I think you may be missing the point... It will display the value of the global field at the time that it was hosted. So if you went to a backup and lets say you opened it locally. With an opening script, it could have easily set a value to that global field. Then when you go to host it, it will have its last value.

It is important when having an opening script that sets global fields, to be careful when opening it locally since it will set default values which you may not want when being hosted.

Share this post


Link to post
Share on other sites

Ahh light bulb!

I see exactly what you are saying. I can write a script to empty the global when the database opens. That is what is suppose to be in the global in the first place.

Thanks.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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