2 Replies Latest reply on Nov 14, 2011 3:36 PM by hsanchez

    Get(LayoutName)

    hsanchez

      Title

      Get(LayoutName)

      Post

      Hi,

      What is the best way to imprint a layout name in a layout?

      I have 100s of layouts that now need their actual layout name on their headers. I've tried to setup a field with the Get(LayoutName) calculation but it's returning a "?"

      Any help is appreciated!

        • 1. Re: Get(LayoutName)
          philmodjunk

          Put Get ( LayoutName ) in an unstored calculation field set to return text and it should work when placed on each layout in your solution. However, since each layout may refer to a different table in your system, you may need to define multiple copies of this field throughout your database.

          You may want to use a global variable inside a merge text box (FileMaker 11 only) to display the same name:

          <<$$LayoutName>>

          An OnLayoutEnter script trigger can use:

          Set Variable [$$LayoutName ; value: Get ( LayoutName ) ]

          to set the value each time you enter the layout.

          • 2. Re: Get(LayoutName)
            hsanchez

            It works, thanks Phil!