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.

Need help with layout "parameters"

Featured Replies

I am trying to figure out a method that I can always use to define my buttons for navigating to various layouts in a solution. I want to set my parameters for this without hard coding the parameter value - I like the idea of referencing a field. I would rather reference a field value that dynamically gets its value from a calculation so I do not have to worry about breaking the script. I do change layout names during the course of development because they are used in other areas like window titles, etc.

In the FileMaker Pro Bible (page 443), there is an explanation about using two calcs in order to obtain the LayoutID instead of the layout number or layout name. Since the layout ID can not change - I thought this was the solution I was looking for.

One calc is used to determine that layout name, and the other calc is used to determine the layout ID - I think. I created those calcs and got them to display the layout id, but was not sure if these were suppose to be fields that I create to get the value, or if I am suppose to use the calcs in the "Go To Layout" script step "Layout by calculation" specification dialog?

Any ideas? Thanks in advance!

LayoutIDs(fileName)returns a list of all layout IDs in fileName, separated by carriage returns. I don't see how that is going to help you navigate.

At any rate, you can only go to layout by name or number, whether calculated or not.

If you pass in a parameter such as "invoice" to your navigation script, then you can branch your script like so:

If (Get ( ScriptParameter ) = "invoice"

Go to layout( my invoice layout )

Kind of cumbersome, but even if you move or rename "my invoice layout" the script will not break.

Maybe you could give a more concrete example of what you have in mind; I'm not sure I really understand what you're hoping to accomplish.

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.