Newbies Toddski Posted May 28, 2008 Newbies Posted May 28, 2008 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
mr_vodka Posted May 28, 2008 Posted May 28, 2008 See if this FAQ helps. http://faq.filemakermagazine.com/index.php/Global_fields
Newbies Toddski Posted May 28, 2008 Author Newbies Posted May 28, 2008 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.
mr_vodka Posted May 28, 2008 Posted May 28, 2008 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.
Newbies Toddski Posted May 28, 2008 Author Newbies Posted May 28, 2008 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.
Recommended Posts
This topic is 6023 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 accountSign in
Already have an account? Sign in here.
Sign In Now