[Mondrian] RolapCell.java
Julian Hyde
jhyde at pentaho.com
Sun Apr 10 13:08:47 EDT 2011
Thanks. Can you log a jira case so we don't forget to include this patch.
I'm guessing that the test case is straightforward -- a query on foodmart
with visual totals on one axis, ask the visual total cell whether it is
drillable.
Julian
> -----Original Message-----
> From: mondrian-bounces at pentaho.org
> [mailto:mondrian-bounces at pentaho.org] On Behalf Of Ati Rosselet
> Sent: Sunday, April 10, 2011 9:13 AM
> To: Mondrian developer mailing list
> Subject: [Mondrian] RolapCell.java
>
> Using VisualTotals, I suddenly was getting errors thrown when trying
> to check for drillthrough capability on a cell, although for left
> cells this should be possible. (class cast exception - cannot cast
> VisualTotalMember to RolapCalculatedMember) I fixed it by changing
> RolapCell.java
>
> from:
> RolapCalculatedMember measure = (RolapCalculatedMember) member;
> final Exp expr = measure.getFormula().getExpression();
> to:
> final Exp expr;
> if (member instanceof VisualTotalMember){
> VisualTotalMember vtMember = (VisualTotalMember)member;
> expr = vtMember.getExpression();
> } else {
> RolapCalculatedMember measure =
> (RolapCalculatedMember) member;
> expr = measure.getFormula().getExpression();
> }
>
> now drillthrough works fine for leaf members, but not for dynamic
> members (parents of summed parts).
>
> Just in case this helps anyone. There are probably other cases, and
> the parent might be able to be drilled through, but since it acts as a
> calcualated member, this may not be possible?
> Cheers
> Ati
> _______________________________________________
> Mondrian mailing list
> Mondrian at pentaho.org
> http://lists.pentaho.org/mailman/listinfo/mondrian
>
More information about the Mondrian
mailing list