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)
Customizing Report Viewer
shikaris
I am trying to integrate BIRT into my jetspeed portal application and would like to see if there is way to customize the report viewer to support
1. Explorer - that lists all available reports (listing or dropdown)
2. Parameter - no dialog - but on the page - provide user a way to input parameters
3. Custom icons - for export/render and print
Are there any examples of similar efforts?
TIA
Find more posts tagged with
Comments
A_Fejer
Hello shikaris,<br />
<br />
I'm not sure if there are any examples that might help you with your problems, because I only started working with BIRT a short time ago, but I hope that I can help you.<br />
<br />
<blockquote class='ipsBlockquote' data-author="'shikaris'" data-cid="68029" data-time="1283369536" data-date="01 September 2010 - 12:32 PM"><p>
1. Explorer - that lists all available reports (listing or dropdown)</p></blockquote>
You could create an HTML page with a list of the reports you want to use.<br />
The entries should have a link to the URL of the report.<br />
<br />
<br />
<blockquote class='ipsBlockquote' data-author="'shikaris'" data-cid="68029" data-time="1283369536" data-date="01 September 2010 - 12:32 PM"><p>
2. Parameter - no dialog - but on the page - provide user a way to input parameters</p></blockquote>
If you are using the BIRT WebViewer, you can add the value of a paramter by adding it to the URL<br />
Example: <br />
<pre class='_prettyXprint _lang-auto _linenums:0'>http://localhost:8080/birt-viewer/frameset?__report=Report\ParameterToDataSetParameter.rptdesign&OrderNumber=10100</pre>
In this case OrderNumber is the parameter name and '10100' the parameter value.<br />
I didn't manage to use this method with cascaded parameters, when I tried to use the cascaded.rptdesign example provided by Eclipse BIRT.<br />
<br />
If you are using the genReport.bat btach-file from the BIRT runtime, you can write a batch-file to take care of the parameter input. Here's an example:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>ECHO off
IF not %1 == "" && %2 =="" GOTO runGenerator
ECHO "Please add both parameters."
GOTO end
:runGenerator
Set BIRT_HOME=C:\Programme\birt-runtime-2_5_2\
set p1=%1
set p2=%2
C:\Programm\birt-runtime-2_5_2\ReportEngine\genReport.bat --format PDF --output c:\Programme\birt-runtime-2_5_2\ReportEngine\samples\output2.pdf --parameter "customer=%p1%" --parameter "order=%p2%" C:\Programme\birt-runtime-2_5_2\ReportEngine\samples\cascade.rptdesign</pre>
I attached the 2 example Report-Design files from Eclipse BIRT.<br />
<br />
<br />
<blockquote class='ipsBlockquote' data-author="'shikaris'" data-cid="68029" data-time="1283369536" data-date="01 September 2010 - 12:32 PM"><p>
3. Custom icons - for export/render and print</p></blockquote>
You can replace the icons in the image directory of the viewer. In BIRT Eclipse you can find the directory here:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>... \eclipse\plugins\org.eclipse.birt.report.viewer_2.5.0.v20090520\birt\webcontent\birt\images\</pre>
<br />
If you are using the viewer from that comes with BIRT Runtime package then you will find the images using the following path:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>... \WebViewerExample\webcontent\birt\images</pre>
<br />
<br />
If you would like to change the color of the BIRT Viewer toolbar and navigation bar, then you will find the the sytles.css file in the following directory:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>... \WebViewerExample\webcontent\birt\styles\</pre>
The toolbar color is in the line 301 and the navigation bar color is in the line 318.
sajit
<p>How to add xlsx icon in birt viewer toolbar.</p>
Sujal Mandal
<p>Same here, i managed to make changes to the style.css to change the color, icons can be changed as well, but from where is the source of the text that is displayed for Birt Viewer Pages Title, header.</p>
<p> </p>
<p>