Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Adding Navigation bar at the bottom of BIRT Viewer
jkamaraj
I am working on customizing the BIRT viewer. The requirement is to modify the look of navigation bar & toolbar, remove the progress dialog, and add an extra navigation bar at the bottom of the viewer. By making the changes in NavigationbarFragment.jsp, ProgressBarFragment.jsp, and in ToolbarFragements.jsp I am able to do all of the above except adding an navigation bar at the bottom of the viewer.
Few things I tried
1. Include the NavigationbarFragment.jsp in ReportFragment.jsp
2. Include the NavigationbarFragment.jsp in ReportContentFragment.jsp
3. Include the NavigationbarFragment.jsp in FramesetFragment.jsp
4. Tried adding the below in ReportFragment.java and ReportContentFragment.java
addChild( new NavigationbarFragment( ) );
An additioanl navigation bar is displaying at the bottom of the original navigation bar but immediately repalced by the report content.
Thanks for any help.
Regards,
Raj
Find more posts tagged with
Comments
JasonW
The issue is that the AJAX code updates the report container to consume the entire height of the browser window. Add a label at the bottom of the framsetsetfragment.jsp eg
</script>
My test label
</HTML>
Then look at the AbstractBaseReportDocument.js file in the webcontent/birt/ajax/ui/report folder. Find the method __updateContainerSize. Look for this line:
var height = BirtPosition.viewportHeight( ) - this.__instance.offsetTop - 2;
if( height > 0 )
this.__instance.style.height = height + "px";
and change it to
var height = BirtPosition.viewportHeight( ) - this.__instance.offsetTop - 2;
if( height > 0 )
this.__instance.style.height = height*.9 + "px";
Jason
jkamaraj
<blockquote class='ipsBlockquote' data-author="'JasonW'" data-cid="76505" data-time="1304352018" data-date="02 May 2011 - 09:00 AM"><p>
The issue is that the AJAX code updates the report container to consume the entire height of the browser window. Add a label at the bottom of the framsetsetfragment.jsp eg<br />
<br />
</script><br />
<br />
My test label<br />
</HTML><br />
<br />
Then look at the AbstractBaseReportDocument.js file in the webcontent/birt/ajax/ui/report folder. Find the method __updateContainerSize. Look for this line:<br />
<br />
var height = BirtPosition.viewportHeight( ) - this.__instance.offsetTop - 2;<br />
if( height > 0 )<br />
this.__instance.style.height = height + "px";<br />
and change it to<br />
<br />
var height = BirtPosition.viewportHeight( ) - this.__instance.offsetTop - 2;<br />
if( height > 0 )<br />
this.__instance.style.height = height*.9 + "px";<br />
<br />
Jason<br /></p></blockquote>
jkamaraj
Thanks. That solves the problem. However, looks like attributeBean does not have valid values and so the page navigation links are not working at the bottom. I am further looking into this. Thanks again for your help.