2 Replies Latest reply on Mar 19, 2014 9:56 AM by Annette

    Only Show Button when using Web Access - FM13

    Annette

      Title

      Only Show Button when using Web Access - FM13

      Post

           Hi,

            

           I have a database using FM 13 which is web accessible.  I want to place a button on the database that only shows to users when they are accessing it through the web.  Can this be done through the "Hide When" feature added to 13?  If so, not sure what I put there to get it to work.

        • 1. Re: Only Show Button when using Web Access - FM13
          philmodjunk

               You could put this in the Hide When box:

               Not PatternCount ( Get ( ApplicationVersion ) ; "Web" )

               But it's often the case that you need to detect that you have a web client for multiple purposes. You might instead set up this script:

               If [ PatternCount ( Get ( ApplicationVersion ) ; "Web" ) ]
                  Set Variable [$$ClientType ; value: "Web" ]
               End IF

               in a script step to run "onFirstWindowOpen" in File Options.

               Then your "Hide When" expression could be:

               $$ClientType ≠ "web"

          • 2. Re: Only Show Button when using Web Access - FM13
            Annette

                 Perfect!  Thanks!  And will def add that to the startup script.  Thanks for the advice.  :)