PatriciaW Posted June 28, 2005 Posted June 28, 2005 I have separated my application into UI files and data files. When the first user opens the main UI file and on startup that UI file opens all other UI files, does that user automatically become host to all the UI files and data files?
xtrim Posted July 13, 2005 Posted July 13, 2005 If you are not using FMS and he is the first to open those files and the files are set for sharing - then YES.
PatriciaW Posted July 13, 2005 Author Posted July 13, 2005 Thanks ... I have a further question ... The original application (FM6) had explicit opens of all of the files (UI/data combined). I have now got a single UI and multiple data files, which are defined as TOs in the Database relationships. Will these get opened automatically when the UI gets started?
xtrim Posted July 13, 2005 Posted July 13, 2005 The data files wil get open if 1 - There is a sub-script pointing to these files 2 - If on the layout there is a portal field or a local calculation field that uses something from theses files (and then they will open with their default settings) 3 - If a permission calculation is using something from these files this ofcourse relevant to FMP6....
PatriciaW Posted July 13, 2005 Author Posted July 13, 2005 Pardon ... are you saying this does or does not apply to FM7? I have one UI file and about 6 data files. All of the data files are referenced somewhere in the UI ... but the UI has many layouts. What do I have to do to ensure that the data files get opened?
Ender Posted July 14, 2005 Posted July 14, 2005 The other files will open as needed under those conditions that xtrim has outlined, so in general, it is not necessary to explicitly open them. However, in your case, since you're hosting with FM Client, you should explicitly open them so that connecting clients will be able to access those files even if the Host didn't have any immediate use for them. This can be easily done by having your startup script Open[] each external file. I'd probably try to make this a little more efficient by adding conditions: If [ Get(MultiUserState) = 1 ] If [ position(DatabaseNames,"Data1",1,1) = 0 ] Open File [ Open hidden; Data1 ] End If If [ position(DatabaseNames,"Data2",1,1) = 0 ] Open File [ Open hidden; Data2 ] End If ... End If
Recommended Posts
This topic is 7083 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