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.

Pop up menu and Script Triggers

Featured Replies

Hey everyone

I'm in the process of updating a database solution so all main layouts have a "quick jump" feature. The quick jump is a pop-up menu that has all major layouts listed so the user can quickly jump to and from certain layouts. As I have never implemented such a feature, I have currently created a script that sets a variable based on the selection, and then created IF statements to take the user to the correct layout (or perform the correct script if necessary).

Set Variable [$quick_jump ; value:quick jump]

IF [$quick_jump = "Main Menu"]

Go To Layout "Main Menu" (or Perform Script)

The script is very basic at this moment in time as I have only permitted certain layouts to be "quick jumped" to. There must be a better way of programming this. I don't want to have to manually update the script each time I create a new layout that needs accessing through this feature.

Suggestions? Thank you!!

You can use LayoutNames ( Get ( FileName ) ) to get a return-delimited list of all layout names in your file. You can then use a layout naming convention and a parsing script on start-up to only include those layouts in the list that you want to. Rather than have an If/Else If series containing every layout you want to include, I would write that start-up script to generate two lists: the name you want to expose to users, and the actual layout name (or number, or internal ID). The matching values should in the same position in each list. That way, when a user picks the second option from the list they can see, you can Go to Layout [name by calculation] using the second value from the hidden list. I did something similar here: https://github.com/jbante/FileMaker-Techniques/blob/master/Crumb&Carousel.fp7 (Edited to link to GitHub, which does not require membership, rather than TechNet. 2012-05-02 10:15:40)

I've been considering adding something similar to what you describe to the framework, but I haven't gotten around to it.

Hi Jeremy,

Thanks for sharing your file. In the future would you please post your files here, in case the member is not a subscriber to TechNet.

TIA

Lee

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.