|
Re: Show TOC automatically when report start [message #259347 is a reply to message #259261] |
Wed, 24 October 2007 15:28  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02383 seconds