[JPivot-devel] RE:[jpivot-devel Adding Treemap to JPivot
Brought to you by:
avix
|
From: <SMF...@co...> - 2006-01-13 15:21:58
|
Hello All,
I =B4m one of the devolopers of JRubik,
We have adapt the treemap component developing a new plugin. I don't th=
ing
It's the best solution, it is
just an start point to increment the features that Jrubik can provide, =
and
if anyone is interested he will be
welcomed.
Other question:
We use
monModel.setExternalDataSource(javax.sql.Datasource);
for stabish the mondrian conection.
DriverManager.getConnection(jdbcUrl, jdbcUser, jdbcPassword); fails bec=
ause
the jpivot classLoader has not access to the drivers. That ones are
managed by theirs plugins classLoaders. This way works good with almost=
all
extensions except:
DrillThrough dt =3D(DrillThrough)olapModel.getExtension(DrillThrough.ID=
)
I think the problem is the way of stablish the conection in
MondrianDrillThroughTableModel:
private Connection getConnection() throws SQLException {
if (dataSourceName =3D=3D null) {
if (jdbcUrl =3D=3D null) {
throw new RuntimeException(
"Mondrian Connect string '" +
"' must contain either '" + RolapConnectionProperties.Jdbc +
"' or '" + RolapConnectionProperties.DataSource + "'");
}
return DriverManager.getConnection(jdbcUrl, jdbcUser, jdbcPassword);
} else {
return getDataSource().getConnection();
}
}
To solve the problem we have copy the MondrianDrillThroughTableModel as=
RubikDrillThroughTableModel:
RubikDrillThroughTableModel(OlapModel olapModel,Cell cell) {
private Connection getConnection() throws SQLException {
MondrianModel monModel =3D(MondrianModel)olapModel;
return monModel.getExternalDataSource().getConnection();
}
=BFdo you sugest anything to stablish the datasource as
MondrianDrillThroughTableModel way instead use the
RubikDrillThroughTableModel?
Thanks in advance.
Felix
=
|