AnsweredAssumed Answered

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

Question asked by CarlSchwarz on Jan 2, 2014
Latest reply on Jun 27, 2014 by philmodjunk

Summary

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

Product

FileMaker Server

Version

13

Operating system version

Windows

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

NA

Configuration information

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

Workaround

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

Outcomes