2 Replies Latest reply on Sep 29, 2010 2:26 AM by yorkli

    how to generate the sort icon in report layout

    yorkli

      Title

      how to generate the sort icon in report layout

      Post

      Hi, everyone,

      In filemaker pro 11, I want to generate the sort icon before the item in some report layouts as well as showing in samples, as i know , this icon match field "g_HiliteLibrary", but when i create the field "g_HiliteLibrary" in my own report, it doesn't work. i know there must be something need to do it but i can not figure it out .

      anyone can help me?  show me the steps detail to generate the sort icon . please check screenshot below:

       

      hiliteponumber.png

        • 1. Re: how to generate the sort icon in report layout

          york li:

          Thank you for posting.

          Unfortunately, the setup for this interface is more complicated than it seems.

          The g_HiliteLibrary is a global container field with three repititions - one for each of the three sort icons. The icons displayed on the Record List layout are calculation fields that change depending on the contents of the g_SortBy field.

          The g_SortBy field is set whenever you click a column header on the layout. There is actually a hidden rectangle/button object overlaying each header that runs a specific Sort script when you click it. This script sorts the records, sets the g_SortBy field, and consequently changes the result of the calculation field displaying the icon.

          Try looking at definitions of the various "Hilite" fields like "HiliteDate" and the sort scripts like "SortDate"; these should give you a better idea of how this interface feature is implemented. If you have any more specific questions, please feel free to post them.

          TSuki
          FileMaker, Inc.

          • 2. Re: how to generate the sort icon in report layout
            yorkli

            thank you very much!