On 2/20/2012 7:22 AM, Rohit Lambi wrote:
> hi, I want to iterate over a data cube from java application. Is there
> any example/s of the same ?
> I have gone through org.eclipse.birt.data.engine.olap package but I am
> not getting where to start from
>
> Any help would be appreciated. Thanks in advance

thanks for the reply. what I am doing is, designing cubes
from birt report designer and I want this cube in my application
after running the report as a multidimensional datastructure
where I can use it.

And I want to tell you that I am not using rendering provided by birt.

I have gone through the javadoc api of

org.eclipse.birt.data.engine.olap

but I am not getting where to start from,
so please shed some light on it.

On 2/22/2012 1:05 AM, Rohit Lambi wrote:
> Jason,
>
> thanks for the reply. what I am doing is, designing cubes from birt
> report designer and I want this cube in my application after running the
> report as a multidimensional datastructure where I can use it.
> And I want to tell you that I am not using rendering provided by birt.
>
> I have gone through the javadoc api of
> org.eclipse.birt.data.engine.olap
> but I am not getting where to start from, so please shed some light on
> it. Thank you

But at least can you please guide me in doing this.
I am seriously stuck and I cant go further. I am continuously on it
but still unable to find a way out of it. There are many
classes in org.eclipse.birt.data.engine where one
can play with cube but how to get a runtime handle of Cube
defined in the report and org.eclipse.birt.data.engine.olap.query.view has a class BirtCubeView
how to create BirtCubeView of the retrieved cube handle ?

I have not worked in the cube area but you may want to look at
DataPresentationEngine.java in the
org.eclipse.birt.report.engine.data.dte package. There is a method in
the class called doExecuteCube. This essentially returns the results of
the cube and then look at BIRTCubeResultSetEvaluator.java in teh
org.eclipse.birt.chart.reportitem package to see an example of how the
chart engine iterates the cube.

Jason

On 2/23/2012 12:09 AM, Rohit Lambi wrote:
> Jason,
>
> But at least can you please guide me in doing this. I am seriously stuck
> :( and I cant go further. I am continuously on it
> but still unable to find a way out of it. There are many classes in
> org.eclipse.birt.data.engine where one can play with cube but how to get
> a runtime handle of Cube defined in the report ?
>
> Thank You :(

for ExecutionContext new ExecutionContext()
and for DataRequestSession
DataRequestSession session = DataRequestSession.newSession( new
DataSessionContext( DataSessionContext.MODE_DIRECT_PRESENTATION ) );

How are you getting: ICubeQueryDefinition query ?

Jason

On 2/28/2012 9:37 AM, Rohit Lambi wrote:
> Jason,
>
> I have gone through DataPresentationEngine.java in the
> org.eclipse.birt.report.engine.data.dte package.
>
> Also I have traversed the flow of method calls of render() of RenderTask
> which makes use of doExecuteCube() of DataPresentationEngine.java
> I will be using RunTask to run and create .rptdocument file.
>
> Now, what I want is to create a method getCubeResult() which returns
> CubeResultSet and which will have the same code of doExecuteCube()
> method of DataPresentationEngine.java
> For this I require the references to ExecutionContext and
> DataRequestSession which I am unable to do so.
>
> Can you please point us to the class / API which can give me the
> ExecutionContext or any other option via which I can access the cube
> information.
>
>
>
>
>
>
>