Quantcast
Channel: FileMaker Forum > Report an issue
Viewing all articles
Browse latest Browse all 3510

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

$
0
0

Issue report by Carl Schwarz

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

Viewing all articles
Browse latest Browse all 3510

Trending Articles