R2D2 Posted March 12, 2010 Posted March 12, 2010 I have a problem. I've made a "Preferences" layout where all the icons and logos are stored in container fields (global storage). I copy-pasted the icons to the containers. But every time I close the file and open it again all the container fields are empty. How can I preserve the data in those ?
IdealData Posted March 12, 2010 Posted March 12, 2010 In order for data in globals to "stick" you must have control of the file. If it is being hosted by another computer then you must use that one to fill the globals. If it's FM server then you must close the file and open it using FMP, fill the globals, close and re-open in FMS.
R2D2 Posted March 12, 2010 Author Posted March 12, 2010 Yes, the file is hosted by FM server and I'm using and editing that directly. So you mean I have to download the file from server, fill in the containers and then upload it back to the server ?
IdealData Posted March 12, 2010 Posted March 12, 2010 (edited) Yes, however another way around this is to create a table specifically to hold your graphics, but not as globals - these days it's the preferred route as you can readily update your graphics without closing the file. Edited March 12, 2010 by Guest
R2D2 Posted March 12, 2010 Author Posted March 12, 2010 Done and now it seems to be working correctly. Thank you, IdealData !
mr_vodka Posted March 12, 2010 Posted March 12, 2010 Global fields are session specific and will have an initial value of what it was at the point that is started being served or last modified by a server side script. So you can either have a preferences table that stores your icons and then set the global fields on startup with an opening script, unserve the files and store the images in the global fields when unserved, or use a server side script to set the globals.
Recommended Posts
This topic is 5428 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