3 Replies Latest reply on Feb 17, 2011 7:31 AM by TSGal

    FileMaker Go

    StigSundström

      Product

      FileMaker Go

      Version

      1.1.2 for iPhone

      Operating system version

      iOS 4.2.1

      Description of the issue

      Scriptstep not working:

      GetLayoutObjectAttribute

      For your information, my version of FileMaker Pro are running swedish as main language.

      Steps to reproduce the problem

      Used in a script that check which tab are the frontmost tab, and get it to t.ex show a doalogbox.
      Works fine in FileMaker pro, but doesn´t work in FileMaker Go for iPhone.
      ---
      if[GetLayoutObjectAttribute ( "FlikSok" ; "ärFrämreTabbPanel" )=1]
      Visa anpassad dialogruta ["Test"]
      end if

      Expected result

      Showed dialog on screen.

      Actual result

      None.

      Workaround

      None that I have found.

      Skjermbilde_2011-02-16_kl._23.39.38.png

        • 1. Re: FileMaker Go
          TSGal

          Stig Sundström:

          Thank you for your post.

          I am unable to replicate the problem.  Here is what I did:

          1. In FileMaker Pro 11.0v2, I created a table with a couple of test fields.

          2. In Layout Mode, I added a Tab Panel with two tabs, named "First" and "Second".  As objects, I also named them "First" and "Second".

          3. My script was slightly different:

          If [ GetLayoutObjectAttribute ( "First" ; "isFrontTabPanel") ]
             Show Custom Dialog [ "First" ; "First Tab" ]
          Else If [ GetLayoutObjectAttribute ( "Second" ; "isFrontTabPanel" ) ]
             Show Custom Dialog [ "Second" ; "Second Tab " ]
          End If

          4. I then attached a button to the Layout to execute this script.

          5. In Browse Mode, I selected the "First" tab, clicked the button,and the dialog box appears with "First Tab".

          6. I selected the "Second" tab, clicked the button, and the dialog box appears with "Second Tab".

          7. I hosted the file.

          8. I launched FileMaker Go from an iPad, and opened the hosted file on the Mac.

          9. I repeated steps 5 and 6 above, and I received the correct dialog boxes.

          Can you try this with a new file to see if the problem only occurs with the one file.

          TSGal
          FileMaker, Inc.

          • 2. Re: FileMaker Go
            StigSundström

            It´s like this.

            This is a language specific bug, if I use the term "isFrontTabPanel" written i english, it works OK, but as soon as I use the swedish term "ärFrämreTabbPanel" as written in FileMaker Help, it doesn´t work.

            The we have the question, how many other functions will not work because of the language? Or, FileMaker should consider to write the english terms in the swedish (and other languages) online help.

            • 3. Re: FileMaker Go
              TSGal

              Stig Sundström:

              Thanks for the clarification, and my apologies for not noticing this sooner.

              Since FileMaker Go is not yet available in Swedish, the English settings will be needed.  Therefore, in your scripts, you may want to put in conditions for the System Platform, and if it equals FileMaker Go, then use the English settings.  For example:

              If [ Get ( SystemPlatform ) > 2 ]

                 If [ GetLayoutObjectAttribute ( "First" ; "isFrontTabPanel") ]
                    Show Custom Dialog [ "First" ; "First Tab" ]
                 Else If [ GetLayoutObjectAttribute ( "Second" ; "isFrontTabPanel" ) ]
                   Show Custom Dialog [ "Second" ; "Second Tab " ]
                 End If

              Else

                 If [ GetLayoutObjectAttribute ( "First" ; "ärFrämreTabbPanel") ]
                    Show Custom Dialog [ "First" ; "First Tab" ]
                 Else If [ GetLayoutObjectAttribute ( "Second" ; "ärFrämreTabbPanel" ) ]
                   Show Custom Dialog [ "Second" ; "Second Tab " ]
                 End If

              End If

              Let me know if you need additional clarification.

              TSGal
              FileMaker, Inc.