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

As I understand it, if you open a file directly which has a start-up script defined in the file options dialog, the script will run.

However, if the file has been opened hidden, because of some relationship between it and the currently open database, the startup script seems not to run.

Also, if I specify a script step in my current file which runs a script (not the start-up script) in another file that isn't open, the start-up script does not run.

Is there a way of forcing the start-up script to run whatever way the file is opened?

What I am trying to achieve is to set some global fields for the user however the file is opened - perhaps I need to use a different approach?

Thanks

Brian

Couldn't you add a perform script step to perform the startup script anytime the file is referenced?

In your primary startup file open all files hidden, this will run startups in each of the files. This insures you have a uniform startup sequence for all files.

  • 1 month later...

I ran into this problem recently as well. I have a start-up script that set's global variables that are used by all other scripts, so the start-up script must run before any other script does.

The kicker for me was that I wanted the 2nd file to be able to be closed, keeping the 1st file open, then the next time the 1st file tries to run a script from the 2nd file, it would open, run it's start-up script, then run the script that was called from the 1st file.

(ok, if anyone followed what I said there, then congrats. if you didn't understand it, it's not that important anyways)

Here is the method I came up with:

1) use 'File Options' to switch to a layout on opening (I call the layout: 'RunOnOpen')

2) in the 'RunOnOpen' layout, define a script trigger on event OnLayoutEnter in Browse mode to call your start-up script (I also call my script: 'RunOnOpen')

3) in the start-up script, make one of the first script steps be Go To Layout[any other layout], to prevent the start-up script from running again (which would happen if you opened a new window, performed a find, etc.)

In my testing, I could not run a script or view a layout in the 2nd file without the start-up script running first.

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.