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.

Returning to a layout in one of two possible files

Featured Replies

Hi Everyone.

I have a small relational sub-solution in which I can arrive in one file from either of two others. The initial script from either of the two first files uses a sub scipt in the destination file. If the "If" fails in the destination file and I wish to return to the original layout in either of the first files, is it possible to do so even if I do not know which file I have come from? Layout (original Layout) does not appear to work.

I appreciate that this is a basic question to many - but I'm stuck! blush.gif

Would be grateful for any help.

Hi Cousin Jack, Uncle Ernie here...

In principle this should not be a problem if the scripts in the two original files have an extra 'bogus' script step after calling the external script in the destination. This 'bogus' sscript step forces Filemaker to return to the original database to continue executing the original script.

So in your two original files the script could be something like:

Perform Script [subscript, External::YourScript]

goto Field []

And the destination file could have a script like:

If [YourCondition = True]

Exit script

End If

Hope this helps,

Ernst.

I have done this with many database via a Mode variable. I basically have a global field (gMode) which I set to a number based upon where I came from.

I also make sure to create a script called Mode Dictionary, which basically describes what each mode number means.

  • Author

Thanks Uncle Ernie! much appreciated

  • Author

Thanks Kurt. I remain a bit confused as to what you mean though. could you explain a little more? Thanks for your time.

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.