Changing Help button behavior in InfoView

This is supposed to be easy! I am trying to change the behavior of the Help button in InfoView to point to a repository item, e.g. we have a pdf help file that needs to open in a new window when the user clicks on the ‘Help’ button in InfoView.

I have identified that the changes need to be made in \Program Files\Business Objects\Tomcat55\webapps\InfoViewApp\jsp\listingheaderPlus.jsp file. So far, I have been able to call openDocument.jsp function and link to the repository help file but can’t figure out how to do it without creating a window.open() javascript. The functionality below is working with the exception that the new window created by window.open() remains open after the document is opened in Acrobat reader.

    function onBtnHelpClick()
    {
		var newwindow;
		newwindow=window.open("<%= actionContext%>OpenDocument/opendoc/openDocument.jsp?sDocName=CustomHelp&amp;sType=pdf&amp;sWindow=New",'Help','height=100,width=100');
		//newwindow.close();
    }

I have commented out the newwindow.close() command as the new window was closing prior to opening the pdf help file.

I might be making this too complex and there might be an easier way to connect the Help button to a custom help file rather than Business Objects help file. Any suggestions?

Thanks.


Farhan Jaffery :us: (BOB member since 2005-08-27)