BusinessObjects Board

Modified openDocument.jsp to change Title Bar

Author: Jared Crabtree
Contact: jjcrabtree@aeraenergy.com
Platform: Business Objects XIR2/Tomcat
Discussion: Here
Notes:

 This may be a rather focused piece of customization, but I thought I'd post it anyway.  We have an in-house application that uses the "Open Document" feature of Business Objects to open reports.  Users complained that when opening multiple reports, or the same report with different parameters, they had a hard time navigating between windows.  This is due to the fact that by default, Open Document displays a meaningless URL as the window title.  

I was able to dive into openDocument.jsp and documentXML.jsp and rectify this issue. OpenDocument now supports an additional parameter called “sDocTitle”.

How it works:

  1. If you specify the sDocTitle parameter, this will be displayed as the window title.
  2. If you don’t include the sDocTitle parameter, the name of the report (sDocName) will be displayed as the window title.

How to use:

  1. Copy the “openDocumentCustom.jsp” and “documentXMLcustom.jsp” to the following location: \Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\opendoc
  2. Use openDocumentCustom.jsp as you would openDocument.jsp, but with the added support of sDocTitle. For example:
http://<server>:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocumentCustom.jsp?sPath=[Public+Folder],[All+Documents]&amp;sDocName=MyReport&amp;sType=wid&amp;sRefresh=Y&amp;sDocTitle=This is my report

Alternatively, you could leave out the sDocTitle parameter and the window title would be “MyReport”. Example:

http://<server>:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocumentCustom.jsp?sPath=[Public+Folder],[All+Documents]&amp;sDocName=MyReport&amp;sType=wid&amp;sRefresh=Y

Feel free to contact me if you have any questions.

Jared
Custom OpenDoc.zip (10.0 KB)


Jared80KA :us: (BOB member since 2006-08-24)

thanx…you are genius…

your effort will help many


Shyam_BO :india: (BOB member since 2008-04-05)

How this can be achieved in BOXI rel3.1?


ajaybobj :india: (BOB member since 2008-04-10)

Thanks for the solution.

I was also looking for a solution to modify the menu options in the Document, View menus present in the openDocument.jsp. For Example i did not want the user to save the reports, so i need to remove those options from the Document menu.

any pointers on achieveing this will be very helpful.


drssharan (BOB member since 2010-04-02)

Hi Jared,

When we execute this opendoc url for crystal report with parameters we need to push an execute button for executing the repot. Is there any work around through with we can directly start executuing the reports…

Regards,
Ankeet Pujara


ankeetpujara (BOB member since 2010-04-28)

Hello Jared,

  1. Could you or anyone else please confirm whether this will work with BOXI 3.x?

  2. I think the overall concept is great. Now, if only Jared or some other kind soul would further expand on this: support for named windows, maximized windows, hide/show toolbars, hide/show menu bars, etc? Basically for a more fine-grained control of the new browser window to be opened.


JonathanTeo :singapore: (BOB member since 2006-06-21)

Awaiting response on Page title in 3.1


chinmayfun (BOB member since 2009-09-04)