1 Reply Latest reply on Dec 15, 2013 5:33 PM by Datagrace

    Omit Multiple Breaks in WD

    Datagrace

      Summary

      Omit Multiple Breaks in WD

      Product

      FileMaker Server

      Version

      13

      Operating system version

      Windows Server 2008 R2

      Description of the issue

      A script that tests for platform, finds the found count, and omits > 25 completes on a desktop client and fails in WD. The server incorrectly calculates how many records to omit.

      Steps to reproduce the problem

      Set Variable[$Param; Get(ScriptParameter)
      Go to Layout[Layoutname by calculation: $Param & " List"]
      If[$$Platform = 4]
        Set Variable[$FC; Get(FoundCount)]
        If[$FC > 25]
           OmitMultipleRecords[No dialog; GetAsNumber($FC) - 25]
        End If
      End If

      Expected result

      Only 25 records will be displayed.

      Actual result

      While the number of displayed records is less than the starting FC, the number is inconsistent and much closer to the original FC than to 25. Out of an original record count/found count of 206, the displayed count starts around 196 and seems to decrement with each pass, unless I show all records in between, in which case the result varies.

      Configuration information

      Safari 6.1 on 10.8.5, Chrome 31.0 on 10.9