Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » autotext(page number with autotext )
autotext [message #557427] Tue, 07 September 2010 07:51 Go to next message
Prashant is currently offline Prashant
Messages: 6
Registered: July 2010
Junior Member
Hi,

I want to display page number in a non-master page. For e.g. in one of the table column data.

Is it possible to use autotext outside master page?

Thanks.
Re: autotext [message #557468 is a reply to message #557427] Tue, 07 September 2010 10:25 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

You can do this with a text element like:
<viewtime-value-of>
pageNumber
</viewtime-value-of>

or in a label onRenderScript like:

this.text = pageNumber +" of " + totalPage;

Jason

On 9/7/2010 7:51 AM, Prashant wrote:
> Hi,
>
> I want to display page number in a non-master page. For e.g. in one of
> the table column data.
>
> Is it possible to use autotext outside master page?
>
> Thanks.
Re: autotext [message #557545 is a reply to message #557468] Wed, 08 September 2010 00:24 Go to previous messageGo to next message
Prashant is currently offline Prashant
Messages: 6
Registered: July 2010
Junior Member
Hi Jason,

It is always displaying 1 of 1 even though there are multiple pages for both label and text element,

Thanks,
Prashant
Re: autotext [message #557548 is a reply to message #557545] Wed, 08 September 2010 00:39 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

What version of Birt are you using and how are you running the report?

On 9/8/2010 12:25 AM, Prashant wrote:
> Hi Jason,
>
> It is always displaying 1 of 1 even though there are multiple pages for
> both label and text element,
>
> Thanks,
> Prashant
>
Re: autotext [message #557549 is a reply to message #557545] Wed, 08 September 2010 00:39 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

What version of Birt are you using and how are you running the report?

On 9/8/2010 12:25 AM, Prashant wrote:
> Hi Jason,
>
> It is always displaying 1 of 1 even though there are multiple pages for
> both label and text element,
>
> Thanks,
> Prashant
>
Re: autotext [message #557552 is a reply to message #557545] Wed, 08 September 2010 00:39 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

What version of Birt are you using and how are you running the report?

On 9/8/2010 12:25 AM, Prashant wrote:
> Hi Jason,
>
> It is always displaying 1 of 1 even though there are multiple pages for
> both label and text element,
>
> Thanks,
> Prashant
>
Re: autotext [message #557555 is a reply to message #557552] Wed, 08 September 2010 01:14 Go to previous messageGo to next message
Prashant is currently offline Prashant
Messages: 6
Registered: July 2010
Junior Member
I am using Birt 2.6. I am running report through the option"View Report as PDF" available in Eclipse Helios.
Re: autotext [message #633846 is a reply to message #557552] Tue, 19 October 2010 11:04 Go to previous messageGo to next message
Anatoly  is currently offline Anatoly
Messages: 10
Registered: September 2010
Junior Member
Under 2.6.1 runtime both methods doesn't work Sad

I got birt-runtime-2_6_1.zip from BIRT site at 27.09.2010

Any ideas ? Thanks.
Re: autotext [message #633871 is a reply to message #633846] Tue, 19 October 2010 12:04 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Page variables currently require that you have separate run and render
task. If you are using the viewer are you using the /frameset mapping?

Jason

On 10/19/2010 11:04 AM, Anatoly wrote:
> Under 2.6.1 runtime both methods doesn't work :(
>
> I got birt-runtime-2_6_1.zip from BIRT site at 27.09.2010
>
> Any ideas ? Thanks.
pageNumber, totalPage variables in pdf [message #675168 is a reply to message #633871] Mon, 30 May 2011 09:34 Go to previous messageGo to next message
Eclipse User is currently offline Eclipse User
Messages: 4
Registered: March 2011
Location: Russia
Junior Member
Hi, Jason.

I'm using BIRT 2.6.2 without web viewer.
I try to generate pdf report programmatically with methods, described on
"New and Notable Features within BIRT 2.6" page.

But these methods doesn't work (in report Master Page):
<viewtime-value-of>pageNumber</viewtime-value-of> = 'pageNumber' on every page,
pageNumber = 1 and totalPage = 1 on every page.

However auto-text field "Page n of m" works correctly.

How can I separate run and render phase correctly to get report variables work?

> Page variables currently require that you have separate run and render
> task. If you are using the viewer are you using the /frameset mapping?

> Jason
Re: pageNumber, totalPage variables in pdf [message #675446 is a reply to message #675168] Tue, 31 May 2011 10:30 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Several bugs have been logged on the viewtime value of statement.
https://bugs.eclipse.org/bugs/buglist.cgi?query_format=advanced;short_desc=viewtime;short_desc_type=allwordssubstr;product=BIRT;classification=BIRT

I just tested with BIRT 3.7 and it appears that it has been fixed. BIRT
3.7 will be released in June.

Jason

On 5/30/2011 9:34 AM, forums-noreply@eclipse.org wrote:
> Hi, Jason.
>
> I'm using BIRT 2.6.2 without web viewer.
> I try to generate pdf report programmatically with methods, described on
> "New and Notable Features within BIRT 2.6" page.
>
> But these methods doesn't work (in report Master Page):
> <viewtime-value-of>pageNumber</viewtime-value-of> = 'pageNumber' on
> every page,
> pageNumber = 1 and totalPage = 1 on every page.
>
> However auto-text field "Page n of m" works correctly.
>
> How can I separate run and render phase correctly to get report
> variables work?
>
>> Page variables currently require that you have separate run and render
>> task. If you are using the viewer are you using the /frameset mapping?
>
>> Jason
icon14.gif  Re: pageNumber, totalPage variables in pdf [message #675460 is a reply to message #675446] Tue, 31 May 2011 11:13 Go to previous message
Anatoly  is currently offline Anatoly
Messages: 10
Registered: September 2010
Junior Member
Thank you, Jason
Previous Topic:Using HTML in crosstabs
Next Topic:Check availability of datasets defined in shared library
Goto Forum:
  


Current Time: Thu Jul 24 23:48:17 EDT 2014

Powered by FUDForum. Page generated in 0.02960 seconds