How to define Sorting
You can sort a group by expression of any element within the group. Insert the following syntax within the group tags:

<?sort:expression?>

For example, to sort the Employee breakdown by Employee Number (EMPLOYEE_NUMBER), enter the following after the

<?for-each:G_FULL_NAME?>

tag:

<?sort:xdofx:rpad(EMPLOYEE_NUMBER,10,'0')?>

To sort a group by multiple fields, just insert the sort syntax after the primary sort field. To sort by Full Name and then by Employee Number, enter the following

<?sort:FULL_NAME?><?sort:xdofx:rpad(EMPLOYEE_NUMBER,10,'0')?>

This example is displayed in the figure below (download the example):


Grau op Friday 06 June 2008 - 10:26:55

  printer friendly   create pdf of this news item