Details
-
Type:
Bug
-
Status: Closed
-
Severity:
Low
-
Resolution: Fixed
-
Affects Version/s: 3.1.5 GA
-
Fix Version/s: 3.3.0 GA (4.1.0 GA Suite Release)
-
Component/s: None
-
Labels:None
-
Notice:
Description
The CaptionExpression for dimension levels is missing its implementation and therefore does not work. The following patch fixes this issue (based on mondrian-3.1.5.13307):
— Mondrian.xml.bak 2010-01-12 11:59:48.000000000 +0100
+++ Mondrian.xml 2010-01-18 16:57:57.000000000 +0100
@@ -740,6 +740,12 @@
The SQL expression used to populate this level's ordinal.
</Doc>
</Object>
+ <Object name="captionExp" type="CaptionExpression" required="false">
+ <Doc>
+ The SQL expression used to populate this level's caption. If not
+ specified, the level's name is used.
+ </Doc>
+ </Object>
<Object name="parentExp" type="ParentExpression" required="false">
<Doc>
The SQL expression used to join to the parent member in a
@@ -770,7 +776,9 @@
}
public Expression getCaptionExp() {
- if (captionColumn != null) {
+ if (captionExp != null) { + return captionExp; + }else if (captionColumn != null)
{ return new Column(table, captionColumn); }else {
return null;