Open TOC on report loading [message #483606] |
Wed, 02 September 2009 09:57 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
|
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.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02911 seconds