<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Put a CellFormatter on it and test it again:<br><br>public class TestCF implements mondrian.olap.CellFormatter {<br> public String formatCell(Object val) {<br> return val == null ? "null" : val.getClass().toString()+"@"+System.identityHashCode(val);<br> }<br>}<br><br>Then use it in the schema (I don't think it works on a per-query basis):<br><p>A cell formatter modifies the behavior of <code>
<a href="http://mondrian.pentaho.com/api/mondrian/olap/Cell.html#getFormattedValue%28%29">
Cell.getFormattedValue()</a></code>. The class must implement the<code><a href="http://mondrian.pentaho.com/api/mondrian/olap/CellFormatter.html"><span style="font-family: times new roman,new york,times,serif;"> </span>mondrian.olap.CellFormatter</a></code> interface, and is specified like this:</p>
<blockquote>
<code><<a href="http://mondrian.pentaho.com/documentation/schema.php#XML_Measure">Measure</a> name="name" formatter="com.acme.MyCellFormatter"/></code>
</blockquote><br>Michael<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Message d'origine ----<br>De : John V. Sichi <jsichi@gmail.com><br>À : Mondrian developer mailing list <mondrian@pentaho.org><br>Envoyé le : Mercredi, 24 Janvier 2007, 10h21mn 26s<br>Objet : Re: Re : Re : [Mondrian] Re:VirtualCubeTest.testCalculatedMemberAcrossCubesfailing on SMP<br><br><div>michael bienstein wrote:<br>> <br>> John,<br>> Try "#.00;;Nil".<br>> Michael<br><br>Result is the same (completely blank):<br><br> [java] Row #1: 5,895<br> [java] Row #1: 4501.0<br> [java] Row #1: 76.35%<br> [java] Row #1:<br> [java] Row #2: 6,065<br> [java] Row #2: 6258.0<br> [java] Row #2:
103.18%<br> [java] Row #2:<br>...<br><br>JVS<br>_______________________________________________<br>Mondrian mailing list<br>Mondrian@pentaho.org<br><a target="_blank" href="http://lists.pentaho.org/mailman/listinfo/mondrian">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br></div></div><br></div></div><br>
                <hr size="1">
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur <a href="http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com">Yahoo! Questions/Réponses</a>.</body></html>