xMix (3) [Avatar] Offline
#1

I wrote a userdefinedFunction (UDF) in a schema file below Mondrian 4.0 but found it is very hard to understand how to use (below saiku3) as a measured dimension, could someone explain a little for this? moreover, the calculated data obtained from udf can't be aggregated when different levels of [time] dimension was designated. Indeedly i was confused for a long time. Thanks.

e.g.,
<schema name="myMondian">
<cube name="myCube">
...

<! -- however, the aggregator doesn't work when different time level is used, why? -->
<CalculatedMember name="myCalc" dimension="Measures" aggregator="sum" visible="true">
<Formula>
myUdf
</Formula>

...

<UserDefinedFunction name="myUdf" className="mondrian.udf.myUdf"/>

</cube>
</schema>

yours,