Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Is Paging Available If Don't User BirtViewer or Servlet? [2.1.1]
Is Paging Available If Don't User BirtViewer or Servlet? [2.1.1] [message #198105] Fri, 27 October 2006 22:57 Go to next message
Tyrone Hed is currently offline Tyrone HedFriend
Messages: 79
Registered: July 2009
Member
Folks,
I have integrated my BIRT reports into our application which is
written in Tapestry. I am not using the Birt Report Viewer. I am not using
a servlet.

Does this mean that I can't get paging to work?

Thank you,
Ty

[BIRT 2.1.1]
Re: Is Paging Available If Don't User BirtViewer or Servlet? [2.1.1] [message #198479 is a reply to message #198105] Tue, 31 October 2006 20:03 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Ty,

You can still use paging. You first have to create a rptdocument using the
run task and
then use a render task. In the render task there are two options
task.setPageNumber(3) or task.setPageRange("1-2,5");
There is also a call in IReportDocument to retrieve the total HTML page
count in a report.
iReportDocument.getPageCount()

Jason

"Tyrone Hed" <tyronehed@earthlink.net> wrote in message
news:d448d83f48a67bced5f9ec503a39d7a5$1@www.eclipse.org...
> Folks,
> I have integrated my BIRT reports into our application which is written
> in Tapestry. I am not using the Birt Report Viewer. I am not using a
> servlet.
>
> Does this mean that I can't get paging to work?
>
> Thank you,
> Ty
>
> [BIRT 2.1.1]
>
Re: Is Paging Available If Don't User BirtViewer or Servlet? [2.1.1] [message #198564 is a reply to message #198479] Tue, 31 October 2006 21:36 Go to previous messageGo to next message
Tyrone Hed is currently offline Tyrone HedFriend
Messages: 79
Registered: July 2009
Member
Jason,
Thank you! This will take some doing to implement but it sounds doable.

Thank you!
Ty
Re: Is Paging Available If Don't User BirtViewer or Servlet? [2.1.1] [message #198572 is a reply to message #198479] Tue, 31 October 2006 22:54 Go to previous messageGo to next message
Tyrone Hed is currently offline Tyrone HedFriend
Messages: 79
Registered: July 2009
Member
Jason,
Do you have an example of this anywhere? I can't understand why I
would want to set the page number. Wouldn't that depend on the outcome of
the execution?
How does this cause 'back' and 'next' links/buttons to appear?

Sorry to be thick but I have tried to feel my way through the API but
it doesn't make exact sense.


IReportDocument document = getReportDocument( engine,
(String)pParameters[ 0 ] );
IReportRunnable design = document.getReportRunnable();
IRunTask runTask = engine.createRunTask( design );
Re: Is Paging Available If Don't User BirtViewer or Servlet? [2.1.1] [message #198838 is a reply to message #198572] Thu, 02 November 2006 20:13 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Ty,

Take a look at this example
http://wiki.eclipse.org/index.php/Separate_Run_and_Render

The IReportDocument class has a call for determining the page total.
The navigation bars are built in the AJAX viewer. You will need to create
your own.

Jason

"Tyrone Hed" <tyronehed@earthlink.net> wrote in message
news:d15990444e4bb68c0bed9800553fcc2d$1@www.eclipse.org...
> Jason,
> Do you have an example of this anywhere? I can't understand why I would
> want to set the page number. Wouldn't that depend on the outcome of the
> execution?
> How does this cause 'back' and 'next' links/buttons to appear?
>
> Sorry to be thick but I have tried to feel my way through the API but
> it doesn't make exact sense.
>
>
> IReportDocument document = getReportDocument( engine,
> (String)pParameters[ 0 ] );
> IReportRunnable design = document.getReportRunnable();
> IRunTask runTask = engine.createRunTask( design );
>
>
Previous Topic:Error running the Report Engine in BIRT 2.1.1
Next Topic:Retrieve data within a chart's scripting context
Goto Forum:
  


Current Time: Mon Nov 11 09:44:22 GMT 2024

Powered by FUDForum. Page generated in 0.03301 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top