12 Replies Latest reply on Jun 27, 2014 10:59 AM by philmodjunk

    (Get ( WindowDesktopHeight )) behaves differently in webdirect to filemaker



      (Get ( WindowDesktopHeight )) behaves differently in webdirect to filemaker


      FileMaker Server



      Operating system version


      Description of the issue

      I have a script that does this logical test inside an if script step:
      (Get ( WindowDesktopHeight ) > 1000
      In webdirect this returns the size as 682 which I can see in a "Show Custom Dialog" script step. This script step will evaluate as true even though the size is only 682!!!
      Note that this logical test works fine in Filemaker pro clients.

      Steps to reproduce the problem

      Have a script that tests for window height and use it for a logical comparator in webdirect

      The exact steps in the script are
      show custom dialog[get(windowdesktopheight)]
      allow user abort[off]
      if[ Get ( WindowDesktopHeight ) > 1000 ]

      Expected result

      682 is smaller than 1000 so the logical test should return false.

      Actual result

      The logical test returns true for 682 > 1000

      Exact text of any error message(s) that appear


      Configuration information

      Windows 8.1 laptop hosting server using TechNet license.  IE client.


      Wrap getasnumber() around get(window desktop height).
      The logical operator evaluates correctly then.
      This works fine for true and false cases:
      GetAsNumber(Get ( WindowDesktopHeight )) > 1000