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

Script changes on its own

Featured Replies

  • Newbies

Have a filemaker file called startup that has a few buttons that run scripts and all they do is open different hosted files.

i.e. Button A from startup opens hosted file A. Button B opens hosted file B. etc.

Now when this script is run and the hosted file isn

What's happening is FMP is handling the errors for you -- when the Open step fails it prompts the user to fix the problem by locating the file again and updating itself to remember the new location. Of course the file isn't there so FMP cannot update the new location but it forgets the old one since it's dead anyway.

To solve the problem you have to do two things: tell FMP not to handle the error; and handle the error yourself.

The step "Set Error Capture [on]" tells FMP that you want to handle the error. The Status(CurrentError) function lets you work out whether an error has occurred, and you use the function in conjunction with IF conditonals.

The script could look something like this:


Set Error Capture [on]

Open [file1]

If[status(CurrentError) <> 0]

  Beep

  Show Message [Error opening file.]

End If

Open [file2]

If[status(CurrentError) <> 0]

  Beep

  Show Message [Error opening file.]

End If

Open [file3]

If[status(CurrentError) <> 0]

  Beep

  Show Message [Error opening file.]

End If

Look up the Status(CurrentError) function in FMP Help to get a list of the error codes. Print them out, they come in handy.

  • Author
  • Newbies

That did the trick.

Thanks.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.