4 Replies Latest reply on Sep 9, 2016 8:58 AM by beverly

    Specify layout on open

    rbacigal303

      Is there a way to specify a layout upon opening a file in Filemaker Go 15 that is different than the layout on open by users of the full version?

        • 1. Re: Specify layout on open
          dtcgnet

          When your startup script runs, use something like:

           

          Set Variable $AppVersion = Get ( ApplicationVersion )

          If ( PatternCount ( $AppVersion ) ; "Go" )

          Go to Layout ( Layout for FM Go users )

          Else

          Go to Layout ( Layout for other users )

          End if

          1 of 1 people found this helpful
          • 2. Re: Specify layout on open
            beverly

            look at one of the starter solutions. Contacts for example, has this in File Options:

             

            Script Triggers

            OnFirstWindowOpen -> "Trigger | On First Window Open"

             

            This script is called when you open the database the first time and it does this (see the full script for details):

             

            1. get the platform (web, FMPro, FMGo - including device)

             

            2. then BRANCH to various layouts based on the platform and device

             

            Since the layouts are specific to the desktop, tables or phone in this database file, the branching shows what you want.

             

            TIP: you can use the same type of logic for Web as well, if you need specific layouts for that. Or branch based on login permissions. Test & branch - very powerful!

             

            beverly

            1 of 1 people found this helpful
            • 3. Re: Specify layout on open
              rbacigal303

              Thanks, I'll give it try!

              • 4. Re: Specify layout on open
                beverly

                since "Go" can be iPad or iPhone, the extra test and branch is needed as in the Starter solutions

                 

                beverly