Skip to main content



      Home
Home » Archived » BIRT » Show TOC automatically when report start
Show TOC automatically when report start [message #259261] Wed, 24 October 2007 05:27 Go to next message
Eclipse UserFriend
Originally posted by: xilyxily.yahoo.it

Hi,
for my report I need that TOC is always visible when it start.
Any suggestion?

Regards
Xily
Re: Show TOC automatically when report start [message #259347 is a reply to message #259261] Wed, 24 October 2007 15:28 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Xily,

There may be a better way, but one way is to sent the toc event anytime
the report dom is updated. You can do this in
BirtGetUpdatedObjectsResponseHandler.js which is located in the
webcontent\birt\ajax\mh directory.

just add
if( targets[0].firstChild.data != "birtToc" ){
birtEventDispatcher.broadcastEvent( birtEvent.__E_TOC );
}
to the bottom of the processUpdateData.


__processUpdateData: function( updates )
{
if ( !updates ) return;

for ( var i = 0; i < updates.length; i++ )
{
var targets = updates[i].getElementsByTagName( 'Target' );
if ( !targets || targets.length <= 0 ) continue;

var datas = updates[i].getElementsByTagName( 'Data' );
if ( !datas || datas.length <= 0 ) continue;

var handler = null;
try
{
handler = eval( targets[0].firstChild.data );
}
catch ( e )
{
}
if ( !handler || !handler.__cb_bind ) continue;

handler.__cb_bind( datas[0] );
}
if( targets[0].firstChild.data != "birtToc" ){

birtEventDispatcher.broadcastEvent(birtEvent.__E_TOC );
}


},


Jason

Xily wrote:
> Hi,
> for my report I need that TOC is always visible when it start.
> Any suggestion?
>
> Regards
> Xily
>
>
Previous Topic:Birt Exception in Computed Column
Next Topic:Problems with WebViewer
Goto Forum:
  


Current Time: Wed May 14 12:54:18 EDT 2025

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

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

Back to the top