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)
Change the Head Bar in a Birt Report
Go forward
HI every one,
I had make a report (the one shown in the attached picture).
I want to make the following changes on my report:
* Remove the ? Showing page 1 of 1 ? bar.
* Remove the ? BIRT Report Viewer ? bar.
* change the interface langage ? Print report ? into french one ? Imprimer le rapport ?.
* Remove the buttons ? TOC ? ? Run Report ?.
How can I make these changes ?
Thanks for your help in advance.
Find more posts tagged with
Comments
Go forward
Please I need a Help !!! <br />
<br />
I have been looking in the Internet for 2 days without any results, <br />
I took a look at this page :<a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.php'>Using
the BIRT Report Viewer</a> but I could not have a clear Ideas about how to change a Birt Viewer preferences.
Go forward
I rectified the subject of the topic, it's not about changing changing the Head Bar in a Birt Report rather than changing Birt Viewer properties.
Change the language of the report, ...
mwilliams
Sorry for the delay. I had a project I was working on last week, so I wasn't able to get to too many questions. Glad you found a solution. Let us know whenever you have questions!
Go forward
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="109226" data-time="1347463245" data-date="12 September 2012 - 08:20 AM"><p>
Sorry for the delay. I had a project I was working on last week, so I wasn't able to get to too many questions. Glad you found a solution. Let us know whenever you have questions!
<br /></p></blockquote>
<br />
Hi Williams, <br />
<br />
I'm happy to see you again here on the forum, please I need your help on how to change the <br />
preferences of the Birt Viewer? <br />
Is there any configuration file of Birt Viewer that I can configure in order to make the changes?<br />
<br />
Thank's for help
mwilliams
Oh. I thought your previous post had meant you had solved your issue. You'll probably have to make the changes in the viewer jsp pages. You can find them in webcontent/birt/pages, in the webViewerExample.
Go forward
HI williams,
Whitin this file there is four others, I think either the control file or the layout file could
be the file where I can make changes but while I don't know the JSP langage I can not figure out
what file I could be interested in to change the web Viewer properties.
Could you guide me ? thank's for help Williams
mwilliams
To remove the unwanted buttons: See the webcontent/birt/pages/control/ToolbarFragment.jsp
You should also be able to change what text is displayed, in here.
Page 1 of 1 bar: See the webcontent/birt/pages/control/NavigationBarFragment.jsp
Change or remove BIRT Report Viewer: See the webcontent/birt/pages/layout/FramesetFragment.jsp
Go forward
HI,
Thank's for replying Williams.
Ok so if I make changes on my birt_runtime_version/webcontent/birt/pages/...
I had to make the same changes on my Tomcat Webapps directory where the birt_runtime_version
is supposed to be, is it right?
And after that I sould restart my Tomcat server?
Thank's for advance
Go forward
Sorry Williams for asking a lot of questions,
Could you tell me the specific modifications
needed to be done in these JSP pages.
Thank's in advance
mwilliams
You'll need to change the JSP pages in the deployed web viewer. You may not have to restart Tomcat. I'd make the changes, then see if they've taken effect.
To remove the buttons, you need to go to the page I told you and find the icons for the buttons to remove, then just remove the code for that icon. You might save a copy of the JSP, in case you delete something you shouldn't have.
To change what the tooltip says, you should just need to change the "ALT" to say what you want it to.
For the navigation bar, you'll need to just search the jsp I referenced and find where it displays the page number and take that portion out.
For removing the BIRT Report Viewer text, you should just be able to remove the "Title" code from the <BODY>, in the FramesetFragment.jsp
Go forward
HI Williams,
It works. Thank's very much for your answers.
You are really helpful.
mwilliams
Glad you got it all working how you want it! Let us know whenever you have questions!
Go forward
Hi again with a another question,
In order to change the language of my birt viewer and the tooltip says I downloaded a language pack
BabelLanguagePack-birt-fr_3.7.0.v20120721081147.zip (91.25%)
from the following link :
http://download.eclipse.org/technology/babel/babel_language_packs/R0.10.0/indigo/indigo.php
And I replaced the old plugins and features directories in my Eclipse/folder with the new ones.
As a result, I got my Eclipse in french language, and when I preview my report into Eclipse I got the progress bar and the tooltip says in french.
But when I generate my report through my web application, the tooltip says and the progress bar are in english,
even if I change my BIRT_VIEWER_LOCALE in the web.xml file from en-US to fr-FR.
Did I miss something in my configuration?
mwilliams
Did you replace the files in your webviewerexample as well? Or just in Eclipse?
Go forward
In my webviewerexample(called Birt-viewer) path: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\Birt-viewer
there are no plugins and features files, the webcontent and WEB-INF where I made my changes in the JSP pages.
You told me earlier that I need to change the ALT option to change the tooltip says.
But I don't know how? or is there another way to do it without changing the ALT in my JSP pages?
mwilliams
In the webviewerexample, the same setup of webcontent -> birt -> pages is there. All the changes you need to make and made within the designer should be exactly the same in the JSP pages here.
Go forward
For the ProgressBar in the ProgressBarFragment.jsp file I have changed th efollowing line <br />
<pre class='_prettyXprint _lang-auto _linenums:0'><%= BirtResources.getMessage( "birt.viewer.progressbar.prompt" )%></pre>
with<br />
<pre class='_prettyXprint _lang-auto _linenums:0'><%= BirtResources.getMessage( "the text I want to be displayed ..." )%></pre>
<br />
and for the cancel button the portion code :<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'><INPUT TYPE="BUTTON" VALUE="<%= BirtResources.getHtmlMessage( "birt.viewer.dialog.cancel" )%>"</pre>
<br />
with :<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'><INPUT TYPE="BUTTON" VALUE="<%= BirtResources.getHtmlMessage( "the text I want to be displayed ..." )%>"</pre>
<br />
And I got the changes I want.
mwilliams
You probably could have gotten rid of the BirtResources part too. That appears to be just calling a properties file or something to set the text. There may have been a way to find the properties file and make a new one for your locale to set the text, but if you're only going to have a single language, this wouldn't be necessary. Glad you got it working!
Go forward
Yeah That's right Williams, and thank's again for your help.
For now I'm trying to add some elements to my report, if I face
some problems I will tell you.
Thank's very much
mwilliams
Sounds good. Good luck!
sajit
<blockquote class="ipsBlockquote" data-author="mwilliams" data-cid="109226" data-time="1347463245">
<div>
<p>Sorry for the delay. I had a project I was working on last week, so I wasn't able to get to too many questions. Glad you found a solution. Let us know whenever you have questions!
</p>
</div>
</blockquote>
<p>how to add xlsx icon in birt viewer toolbar.</p>