summaryrefslogtreecommitdiff
path: root/reportbuilder/java/org/libreoffice/report/pentaho/model/OfficeGroup.java
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-03-12 17:57:57 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2013-03-12 18:16:45 +0100
commit4178806bb010129f3b13b62825476666fe48ddcd (patch)
tree26f68a3eb4891945ee06f3630dcf93960de7b3ac /reportbuilder/java/org/libreoffice/report/pentaho/model/OfficeGroup.java
parent36caac0e029a3caf50cb27af339efd69008d414e (diff)
reportbuilder: make "Group on" not-"Each Value" actually work
Change-Id: Id5d73f9aac48ebfb6987e5bf0df37e62f1817bdc
Diffstat (limited to 'reportbuilder/java/org/libreoffice/report/pentaho/model/OfficeGroup.java')
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/model/OfficeGroup.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/model/OfficeGroup.java b/reportbuilder/java/org/libreoffice/report/pentaho/model/OfficeGroup.java
index b10aab188d0c..79ea585ebf3a 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/model/OfficeGroup.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/model/OfficeGroup.java
@@ -81,4 +81,15 @@ public class OfficeGroup extends Section
}
return instanceSection.getGroupingExpression();
}
+
+ public String getSortingExpression()
+ {
+ final OfficeGroupInstanceSection instanceSection =
+ (OfficeGroupInstanceSection) findFirstChild(JFreeReportInfo.REPORT_NAMESPACE, "group-instance");
+ if (instanceSection == null)
+ {
+ return null;
+ }
+ return instanceSection.getSortingExpression();
+ }
}