Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Get report progression from engine API(Report Progress to the UI (Progresbar))
Get report progression from engine API [message #772055] Wed, 28 December 2011 17:37 Go to next message
Alessio Pollero is currently offline Alessio Pollero
Messages: 65
Registered: August 2011
Member
I have a desktop application(Swing) that run BIRT reports and i want to place a progressbar with a status label that show to the user the report generation status and progression in percentage, Is it possible to retrieve report progression in percentage ? How ?

I use an IRunAndRenderTask to execute the report .
Re: Get report progression from engine API [message #774284 is a reply to message #772055] Tue, 03 January 2012 11:21 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Alessio,

Currently the engine does not provide this feature. If would be
difficult to know how much data is going to be retrieved. You could
write some code to simulate percentage based on number of data sets and
use the progress monitoring interfaces to see when each is processed but
it would not be very accurate.

Jason

On 12/28/2011 5:37 PM, Alessio Pollero wrote:
> I have a desktop application(Swing) that run BIRT reports and i want to
> place a progressbar with a status label that show to the user the report
> generation status and progression in percentage, Is it possible to
> retrieve report progression in percentage ? How ?
> I use an IRunAndRenderTask to execute the report .
Re: Get report progression from engine API [message #774313 is a reply to message #774284] Tue, 03 January 2012 12:21 Go to previous messageGo to next message
Alessio Pollero is currently offline Alessio Pollero
Messages: 65
Registered: August 2011
Member
What kind of information of information can i retrieve from the progress monitoring interfaces ?

Can i retrieve information related to the execution phase of the report ?

Can you make me an example ?


Thank you.
Re: Get report progression from engine API [message #774348 is a reply to message #774313] Tue, 03 January 2012 13:51 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Take a look at:
http://www.eclipse.org/birt/phoenix/project/notable2.5.php#jump_19

Jason

On 1/3/2012 12:21 PM, Alessio Pollero wrote:
> What kind of information of information can i retrieve from the progress
> monitoring interfaces ?
>
> Can i retrieve information related to the execution phase of the report ?
>
> Can you make me an example ?
>
> Thank you.
Re: Get report progression from engine API [message #774376 is a reply to message #774348] Tue, 03 January 2012 14:49 Go to previous messageGo to next message
Alessio Pollero is currently offline Alessio Pollero
Messages: 65
Registered: August 2011
Member
Thank you Jason, i will implement it Smile .

Have you planned to implement the progression percentage of report generation for the next releases ?

Thanks again ...

[Updated on: Tue, 03 January 2012 14:50]

Report message to a moderator

Re: Get report progression from engine API [message #774827 is a reply to message #774376] Wed, 04 January 2012 12:55 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Not yet as the calculation could be wildly inaccurate.

Jason

On 1/3/2012 2:49 PM, Alessio Pollero wrote:
> Thank you Jason, i will implement it :) .
>
> Have you planned to implement the report of the progressione percentage
> for the next release ?
>
> Thanks again ...
Re: Get report progression from engine API [message #780510 is a reply to message #774827] Wed, 18 January 2012 06:32 Go to previous messageGo to next message
Alessio Pollero is currently offline Alessio Pollero
Messages: 65
Registered: August 2011
Member
One more question :

Each time that a task is started the start or ended an event is generated, to calculate the percentage i need the total number of task that a report will run, is it possible retrieve that value ?

Thanks again.
Re: Get report progression from engine API [message #780610 is a reply to message #780510] Wed, 18 January 2012 13:36 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Do you mean like start page and end page or start and end query? I do
not think there will be an easy way to determine this.

Jason

On 1/18/2012 6:32 AM, Alessio Pollero wrote:
> One more question :
> Each time that a task is started the start or ended an event is
> generated, to calculate the percentage i need the total number of task
> that a report will run, is it possible retrieve that value ?
>
> Thanks again.
Re: Get report progression from engine API [message #780619 is a reply to message #780610] Wed, 18 January 2012 14:32 Go to previous messageGo to next message
Alessio Pollero is currently offline Alessio Pollero
Messages: 65
Registered: August 2011
Member
Yes i want to know the overall number of task : pages, queries, rendering, and so on ...

I need to know the total number to calculate a percentage ...
Re: Get report progression from engine API [message #780867 is a reply to message #780619] Thu, 19 January 2012 13:21 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

You can the number of queries by looking at the report design, but as
for the others, I do not know of a way to know before the report runs.
The report has no knowledge of how much data is going to be processed
from the data sources.

Jason

On 1/18/2012 2:32 PM, Alessio Pollero wrote:
> Yes i want to know the overall number of task : pages, queries,
> rendering, and so on ...
>
> I need to know the total number to calculate a percentage ...
Previous Topic:Problem integrating BIRT 3.7 with jsf using jsf4birt library
Next Topic:How to set default font and size type
Goto Forum:
  


Current Time: Wed Jul 23 10:12:43 EDT 2014

Powered by FUDForum. Page generated in 0.02755 seconds