crosstabDataset | ||||||||||
Crosstab dataset definition. | ||||||||||
Contains | ||||||||||
dataset? | ||||||||||
Attributes | ||||||||||
isDataPreSorted | ||||||||||
Flag that indicates whether the crosstab data is already sorted according to the row bucket expressions and group bucket expressions (in this order). The crosstab calculation engine can optimize the calculations if the data is sorted by the row groups and column groups. For example, if there are two row groups R1 and R2 (subgroup of R1) and three column groups C1, C2 and C3 the data should be sorted by R1, R2, C1, C2, C3. | ||||||||||
Type: | ||||||||||
Use: optional | ||||||||||
Values | ||||||||||
| ||||||||||
Default: false |
- Definición completa en: http://jasperforge.org/uploads/publish/jasperreportswebsite/trunk/schema.reference.html#crosstabDataset
Al hacer esto, ya tenemos el control sobre el orden en el cual se generarán las columnas o filas en el crosstab.
1 comentario:
Existen 2 formas de ordenar los datos:
1.) A través del query y le indicas al crosstab que la información fue ordenada previamente tal y lo como explicas.
2).A través de la propiedad "Comparator exp." por el cual se define el Comparator que se utilizará para ordenar la informacion.
Esta propiedad se puede definir para cada RowGroup y para cada ColumnGroup.
Saludos,
Publicar un comentario