Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Open TOC on report loading
Open TOC on report loading [message #483606] Wed, 02 September 2009 09:57 Go to next message
Eclipse UserFriend
Originally posted by: dfc.dcallaghan.co.uk

I've written set of report some of which cross multiple pages and support
TOC for navigating within the report. For those reports I'd like to ensure
the TOC is opened when the report loads.

I found the following solution which describes how to ensure reports
always open with the TOC visible:
http://dev.eclipse.org/newslists/news.eclipse.birt/msg24041. html

This works but is there a solution that would allow me to open the TOC
only if one exists in the report? It would be great if I could identify
this based on there being any entries in the TOC but of not I'd be happy
to use some report identifier but not the title as this has been
internationalized.

I'd appreciate any help, Thanks.

Darren.
Re: Open TOC on report loading [message #483612 is a reply to message #483606] Wed, 02 September 2009 10:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dfc.dcallaghan.co.uk

Something else I've just noticed - see below the quote...


Darren Callaghan wrote:

> I've written set of report some of which cross multiple pages and support
> TOC for navigating within the report. For those reports I'd like to ensure
> the TOC is opened when the report loads.

> I found the following solution which describes how to ensure reports
> always open with the TOC visible:
> http://dev.eclipse.org/newslists/news.eclipse.birt/msg24041. html

> This works but is there a solution that would allow me to open the TOC
> only if one exists in the report? It would be great if I could identify
> this based on there being any entries in the TOC but of not I'd be happy
> to use some report identifier but not the title as this has been
> internationalized.

> I'd appreciate any help, Thanks.

> Darren.


With reports that have multiple pages the TOC opens on the report load but
when I navigate between pages (i.e. forward, back or using goto) the TOC
disappears then re-appears then disappears then re-appears, etc. I think
the solution referenced above fails to handle multi-page reports. Help,
please!

Darren.
Re: Open TOC on report loading [message #483928 is a reply to message #483612] Thu, 03 September 2009 15:56 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Darren,

You may be able to modify AbstractBaseToc.js

__cb_bind : function( data )
{
var datas = data.getElementsByTagName( 'Child' );
var len = datas.length;
if( len == 0 )
{
return ;
}


It is returning when no data exist. You might want to try to add
birtEventDispatcher.broadcastEvent(birtEvent.__E_TOC );
before the return. This want fix the open and closing on every page though.

Jason


Darren Callaghan wrote:
> Something else I've just noticed - see below the quote...
>
>
> Darren Callaghan wrote:
>
>> I've written set of report some of which cross multiple pages and
>> support TOC for navigating within the report. For those reports I'd
>> like to ensure the TOC is opened when the report loads.
>
>> I found the following solution which describes how to ensure reports
>> always open with the TOC visible:
>> http://dev.eclipse.org/newslists/news.eclipse.birt/msg24041. html
>
>> This works but is there a solution that would allow me to open the TOC
>> only if one exists in the report? It would be great if I could
>> identify this based on there being any entries in the TOC but of not
>> I'd be happy to use some report identifier but not the title as this
>> has been internationalized.
>
>> I'd appreciate any help, Thanks.
>
>> Darren.
>
>
> With reports that have multiple pages the TOC opens on the report load
> but when I navigate between pages (i.e. forward, back or using goto) the
> TOC disappears then re-appears then disappears then re-appears, etc. I
> think the solution referenced above fails to handle multi-page reports.
> Help, please!
>
> Darren.
>
>
Previous Topic:Memory usage extremly high
Next Topic:BIRT 2.5 drill-through adding prefix to report URL
Goto Forum:
  


Current Time: Fri Apr 26 16:45:22 GMT 2024

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

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

Back to the top