Uploaded image for project: 'Pentaho Analysis - Mondrian'
  1. Pentaho Analysis - Mondrian
  2. MONDRIAN-683

CaptionExpression for dimension levels missing implementation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Low
    • Resolution: Fixed
    • Affects Version/s: 3.1.5 GA
    • Component/s: None
    • Labels:
      None
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      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;

        PractiTest Integration




          Attachments

            Activity

              People

              Assignee:
              gdavid Golda Thomas
              Reporter:
              gwyn Gwyn Connor
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: