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.

Featured Replies

My issue here is this: I use the data separation model. I am opening a starter file and am creating the global variables for all my files here. Works fine. Now I want to pass the other file locations to all my files in a global variable so that in the external file references it reads file:$$locationofthatfile/file.

My way of doing this would be to call a script from say datafile a from within my starter file (passing the global variables as a script parameter (in my case with assign). 

My problem is that calling the script, before it executes will open the file (hidden), all the $$locationofthatfile variables will fail and filemaker will lock in these "erreneous" paths. 

Then, even when the script runs, the newly created global variables will not work.

How would I best be able to resolve this. 

Thank you so much.

Hello

Not sure if you have tested this at all, but my understanding is that so long as those file references in your other files are not called (i.e. you are not a on a layout that shows data from them, and not calling scripts that use them), then FileMaker will not attempt to open them.

Therefore, so long as you set the global variables before you first make a reference to the files, FileMaker will not attempt to open invalid file paths.

 

Edited by rwoods

  • Author

Hi Rwoods,

thank you for taking the time to reply on this. 

Yes, I have been trying to get this to work for several hours. I am creating the global variables first in my starter file. Now here comes the problem. I am trying to set the datasources for the interface file that is opened via the starter file. For this I need to somehow pass the variables for the data sources over to that file. For this I tried:

- calling a script from the interface file to create those variables. This opens the file hidden (and that happens before the parameters can be passed. hence, the global variables dont work.

- open the file (and then passing the parameters) also does not work.

Maybe you have a way to archieve this?

 

Thank you.

Bildschirmfoto 2019-06-27 um 18.01.50.png

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.