BOB: Business Objects Board
Not endorsed by or affiliated with SAP

Register | Login 

Want to sponsor BOB? 
Want to sponsor BOB? (Opens a new window)  

General Notice: No events within the next 45 days.

Modified openDocument.jsp to change Title Bar


 
Search this topic... | Search BOB's Downloads... | Search Box
Register or Login to Post    Forum Index -> BOB's Downloads  Previous TopicPrint TopicNext Topic
Author Message
Jared80KA
Forum Member
Forum Member



Joined: 24 Aug 2006

Posts: 17
Location: California, USA


flag
PostPosted: Wed Apr 09, 2008 5:18 pm 
Post subject: 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: <install 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:
Code:
http://<server>:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocumentCustom.jsp?sPath=[Public+Folder],[All+Documents]&sDocName=MyReport&sType=wid&sRefresh=Y&sDocTitle=This is my report

Alternatively, you could leave out the sDocTitle parameter and the window title would be "MyReport". Example:
Code:
http://<server>:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocumentCustom.jsp?sPath=[Public+Folder],[All+Documents]&sDocName=MyReport&sType=wid&sRefresh=Y


Feel free to contact me if you have any questions.

Jared



Custom OpenDoc.zip
 Description:

Download
 Filename:  Custom OpenDoc.zip
 Filesize:  10.23 KB
 Downloaded:  2731 Time(s)

Back to top
Shyam_BO
Forum Member
Forum Member



Joined: 05 Apr 2008

Posts: 27


flag
PostPosted: Sat Aug 23, 2008 7:08 am 
Post subject: Re: Modified openDocument.jsp to change Title Bar

thanx..you are genius..

your effort will help many
Back to top
ajaybobj
Forum Member
Forum Member



Joined: 10 Apr 2008

Posts: 6


flag
PostPosted: Fri Jan 15, 2010 4:16 am 
Post subject: Re: Modified openDocument.jsp to change Title Bar

How this can be achieved in BOXI rel3.1?
Back to top
drssharan
Forum Member
Forum Member



Joined: 02 Apr 2010

Posts: 3



PostPosted: Fri Apr 02, 2010 2:03 pm 
Post subject: Re: Modified openDocument.jsp to change Title Bar

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.
Back to top
ankeetpujara
Forum Member
Forum Member



Joined: 28 Apr 2010

Posts: 12



PostPosted: Tue May 11, 2010 7:35 am 
Post subject: Re: Modified openDocument.jsp to change Title Bar

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
Back to top
JonathanTeo
Senior Member
Senior Member



Joined: 20 Jun 2006

Posts: 38


flag
PostPosted: Mon Sep 27, 2010 10:25 pm 
Post subject: Re: Modified openDocument.jsp to change Title Bar

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.
Back to top
chinmayfun
Forum Member
Forum Member



Joined: 04 Sep 2009

Posts: 26
Location: India



PostPosted: Tue Dec 07, 2010 11:21 pm 
Post subject: Re: Modified openDocument.jsp to change Title Bar

Awaiting response on Page title in 3.1
Back to top
Display posts from previous:   
Register or Login to Post    Forum Index -> BOB's Downloads  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT - 5 Hours
 
Jump to:  

Index | About | FAQ | RAG | Privacy | Search |  Register |  Login 

Get community updates via Twitter:

Not endorsed by or affiliated with SAP
Powered by phpBB © phpBB Group
Generated in 0.0358 seconds using 19 queries. (SQL 0.0052 Parse 0.0026 Other 0.0280)
CCBot/2.0 (https://commoncrawl.org/faq/)
Hosted by ForumTopics.com | Terms of Service
phpBB Customizations by the phpBBDoctor.com
Shameless plug for MomentsOfLight.com Moments of Light Logo