Can anyone tell me how to get my Layout ID?
Thank you so much.
In what context? Are you trying to use it in a script with GTRR and Get Layout Number by Calculation?
There's also a Get (LayoutNumber) function.
You can also go into Layout Mode and start scrolling thru the book icon, noting the number.
Or you can put Get (LayoutNumber) into your data viewers' watch tab and see what number pops up when you switch layouts.
Neither Get ( LayoutName ) nor Get ( LayoutNumber ) are really "layout ID's" as you can change a layout's name at any time and if you add/remove other layouts, this can change a layout number. But both have their uses as a way to identify the current layout such that it can be saved in a global variable or field so that other scripts can return the user to this layout.
Hey everyone. I know this post is a few years old, but I'm creating a "Go to Layout ( Layout ID )" script and I'm looking for an easy way to find out a layout's ID. I know you can easily run custom function in a script that will get you a layout's ID, but is it listed anywhere where can view all layout ID's, such as in the Manage Layouts window?
jiaHi pmccudden. While not a feature of FileMaker Pro directly, you can use MBS plugin (free download) to display the layout ID in the manage layouts window. It also will display script, table and field ID's in their respective windows also.
Monkeybread Software - MBS FileMaker Plugin 8.1
GetValue (listOfValues; valueNumber)
a FileMaker Pro calculation function:
GetValue(LayoutIDs (Get(FileName)); Get(LayoutNumber))
to return the ID of the current layout, because the items of the list LayoutIDs returned by the Design function LayoutIDs appear in the
same order as the order of the Layouts in the file. And the current layout’s numerical position in that list of layouts is always returned by
the Get(LayoutNumber) function.
Perhaps this will help you?
Steven H. Blackwell
Platinum Member Emeritus, FileMaker Business Alliance
Thank you for the custom function. I found a custom function here. I was hoping for something native inside FileMaker that would handle this. I already made a script that when run shows all relevant info about the current layout that someone might need.
Thank you for the suggestions.
shblackwell just posted a NATIVE method (built-in functions only, no scripts and no plug-in and no custom functions!)
These help topics may give you more information:
If you are ON the layout when this is called, it will return the LayoutID for that layout!
P.S. the "GetValue (listOfValues; valueNumber)" was the generic for that function only. The nested other functions make it work for that layout.
Retrieving data ...