Jump to content
We've recently updated our Privacy Statement, available here ×
  • Sort action breaks the 'group by' behaviour


    asimkin
    • Product: JasperReports® Server

    Issue Description

    If you have a JRXML report with Table component with a group and apply sort action to a column that is not in the 'group by'  clause, it breaks the 'group by' behaviour. Please find attached printscreen of the issue:

    ApplySortAction.png.05844e5bc6ccbbd8c8638c448a495609.png

    Resolution

    Setup net.sf.jasperreports.create.sort.fields.for.groups=true property for Dataset which is used for Table.

    The property automatically adds a sort field that corresponds to the group in the report:

    http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.create.sort.fields.for.groups

    Result of applying the property:

    SortField.png.8356139ef6bba02e48d34046dd58fa7d.png


    Ref. Case 00062619

    ApplySortAction.png.3e911afccf30fc1debdc9f5c030543c2.png

    SortField.png.41068a88a4630fb25bbafc1be61fa98d.png


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...