Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4588 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!!

Posted

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.

  • Like 1
Posted

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

This topic is 4588 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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