Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Filesharing and Separation model

Featured Replies

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?

  • 2 weeks later...

If you are not using FMS and he is the first to open those files and the files are set for sharing - then YES.

  • Author

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?

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....

  • Author

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?

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.