Sorting Data

This document demonstrates how to sort data within a report's detail area and within groups. Note that as with data grouping, sorting can be performed only if a report is bound to a data source. In this example, we'll use the report created in the following tutorial: Grouping Data.

To sort records in a data-aware report, do the following.

  1. Select the Detail Band and expand the Actions category. Then, in the Sort Fields section, click the Add button to add a new sorting.

    eud-sorting-data-0

  2. Now, choose a data member across which the report is to be sorted. Note that sorting across calculated fields is supported as well.

    eud-sorting-data-1

  3. To manage the sorting order, use the arrow button for the Sort By drop-down list. The eud-grouping-data-4 and WebRD_SortDiscendingButton icons indicate the ascending and descending sorting order, respectively. To disable sorting, click this button until it is marked with the WebRD_NoSortButton icon.

    If multiple sorting criteria are specified, you can define the priority for each one, using the Move Up eud-sorting-data-3 and Move Down eud-sorting-data-4 buttons.

Sorting is now applied. Switch your report to the Preview mode and view the result.

eud-sorting-data-2

results matching ""

    No results matching ""