Hi!
I am trying to add a custom entry to the InfoView Toolbar.
I managed following:
1. added to <Tomcat>/webapps/InfoViewApp/WEB-INF/web.xml following:
<context-param> <param-name>img.toolbar.information</param-name> <param-value>toolbar/information.gif</param-value> </context-param>
2. added to <Tomcat>/webapps/InfoViewApp/jsp/listing/headerPlus.jsp
toolbar.beginRightZone();
// add here
<fmt:message var="ttInformation" key='main.menu.information.tooltip'/>
toolbarCtrl.add (newIconWidget("btnInformation",
"<%= context + SESSION_SCHEMA.getUrl(application, "img.toolbar.information") %>",onBtnInformationClick,
'<%= Encoder.encodeJS((String)pageContext.findAttribute("ttInformation")) %>',
'<%= Encoder.encodeJS((String)pageContext.findAttribute("ttInformation")) %>',16,16,0,0,25,3));
toolbar.add (); // Separator
and
function onBtnInformationClick()
{
window.open ('http://www.sap.com', 'Sap', config='height=350,width=350, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no');
}
3. added to <Tomcat>/webapps/InfoViewApp/WEB-INF/src/com/businessobjects/infoview/ApplicationResources.properties
main.menu.informaton.tooltip=Get more Information
When I now access InfoView, I get the menu and also the shortcut. But the menu is displayed as "???main.menu.information.tooltip???".
Does anybody know, what I forgot?
Thanks, for any help!
ciao Hakan
Have you tried to restart the tomcat environment?
The properties files are not updated (reloaded in memory) until you restart the tomcat environment
Hi Alejandro!
Did already restart - Tomcat and SIA - with no effect. Changing exiting values in the properties files, where not shown within Infoview.
I am not sure, but perhaps I have to recompile the sources. I will investigate further.
ciao Hakan
Maybe is something related to language settings:
Have you also changed this file: ApplicationResources_en.properties or your country corresponding language file?
also try to change it in
webapps\InfoViewAppActions\WEB-INF\src\com\businessobjects\clientaction\infoview
I hope it helps you!
Hi!
Yes, did change any propteries file - no change
And did not change within InfoViewAppAction - cause the properties files there is not identical to the InfoViewApp.
ciao Hakan
Hi all!
I tried everything, but had not much time, here the solution for anyone - Hardcoded -
//<fmt:message var="ttInformation" key='main.menu.information.tooltip'/>
toolbarCtrl.add (newIconWidget("btnInformation",
"<%= context + SESSION_SCHEMA.getUrl(application, "img.toolbar.information") %>",onBtnInformationClick,
'Text to Show in Menu',
'Text for tooltip',16,16,0,0,25,3));
toolbar.add (); // Separator
Edited by: Hakan Kilic on Jun 12, 2009 1:03 PM
Hardcoded way is decribed, but the SAP/BO way is still not available.
So there is no language support available
>
Hakan Kilic wrote:
> Hardcoded way is decribed, but the SAP/BO way is still not available.
>
> So there is no language support available
>
Hakan Kilic wrote:
> Hardcoded way is decribed, but the SAP/BO way is still not available.
>
> So there is no language support available
The Solution Worked really great and Hats-off ...You nailed it Boss.
I was doing a search for more then a week and some how I ened up on this page while i was on search and I tried it ...
thanks
Balaji Karunakaran
Hi Guys,
I am trying to create a "Contact Us" button, so far I have managed to get everything working but I would like to know how to control the button click action to open a new html page and where the html page should be located in the system, any ideas????
Hi Richard
I am trying to add a CUSTOM HELP button next to the HELP button in infoview. Can you please tell how to do it and share the code to create it.
Thanks
Praddy