BusinessObjects Board

Change Display of User name to Account Name (XI R2)

Change Display of User name (p12345) to Account Name (John Smith) in Infoview and Performance Management in the XI R2 Version.

Additional code was added to improve the personalization of Infoview in the attached Files (headerplus.jsp and headerplusAF.jsp) :

Instead of simply displaying "Welcome: " in the upper right hand corner of the Infoview and Performance Management screens it will now show the Full Name of a user if one exists. If it does not exist then it will continue to use the username.

The headerplus.jsp (For Infoview Users) is located in the following directory on the web server if using Tomcat (Java)
D:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\InfoView\main\

Simply copy and replace the existing file with this new one
OR
Cut and paste the commented code in the the headerplus.jsp file from the attached Infoview Acct Name XI R2 Script.zip into the original headerplus.jsp file.

The headerplusAF.jsp (For Performance Manager Users) is located in the following directory on the web server if using Tomcat
File Location: D:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\jsp

Simply copy and replace the existing file with this new one

There is also additional custom code in the file to improve the personalization of Infoview. Instead of simply displaying a solid color in the header of Infoview, the code applies a gradient from white to the color specified in CMC custom header color. This is
really only useful for adding company logos with white backgrounds in Infoview and Performance Management , this code is clearly identified and can be commented if not required in the file.
Infoview Acct Name XI R2 Script.zip (15.0 KB)


EnterpriseArchitect :us: (BOB member since 2006-03-23)

Approved, and moved to BOB’s Downloads.


MichaelWelter :vatican_city: (BOB member since 2002-08-08)

Server: BOEXIR2 SP3 in Windoes 2003 SP1

  1. Took a backup of headerPlus.jsp from specified folder
  2. Copied headerPlus.jsp from the zip and placed in same folder.
  3. Restarted Tomcat service.
  4. Logged in Infoview as an user (made sure that the user id has full name in CMC profile)
  5. Infoview just shows the userid in Welcome:--- (top right corner).

Where am I missing? I checked the query in headerPlus.jsp file. It seems to be correct.

SELECT SI_USERFULLNAME FROM CI_SYSTEMOBJECTS WHERE SI_PROGID=‘CrystalEnterprise.USER’ AND SI_NAME = ‘" + fullName + "’"

This query fetches the fullname from user profile metadata. How can i make my Infoview working with <Welcome:Full name> (not user ID).

I appreciate your help… Nice code though.


sivackumar (BOB member since 2007-08-22)

This looks really good. Has any one been able to do this with a .Net install?

:hb: Hi I have copied those 2 files and paste it in the said folders but i cudnt find any result. can you please advise me more.

Thanks,

MJ


manasjena818 :india: (BOB member since 2007-08-13)

Make sure that the user account has a Full Name.
By default, users are created with a blank Full Name.
The code will make use of the username if no Full Name is found.


darcstorm :philippines: (BOB member since 2008-07-22)

Hi,

I am trying to accomplish this task.

Followed the instructions as given above. Restarted the CMS, Tomcat and all the servers. Even rebooted the system on which the BO is installed.

I have checked the metadata of the user profile and full name exists.

Still I see only account name is displayed in infoview rather Full Name :hb:

Any suggestions ?

Environment:
BO XI R2 SP3 CHF 3.3
TOMCAT, WINDOWS 2000

Thanks


raaj (BOB member since 2006-09-14)

Please try Cut and paste the commented code in the the headerplus.jsp file from the attached Infoview Acct Name XI R2 Script.zip into the original headerplus.jsp file available after the installation of XI R2 Service Pack 3.


EnterpriseArchitect :us: (BOB member since 2006-03-23)

Hi EnterpriseArchitect,

Thanks alot. Your suggestion solved my issue :stuck_out_tongue:

Raaj


raaj (BOB member since 2006-09-14)

Hi All,

We are facing a strange issue after implementing “Change Display of User name to Account Name .”

The issue is inactive sessions are not closing. We have changed the default time from 20 to 80 in three locations

a - Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\WEB-INF\web.xml file AND
b - /Tomcat/webapps/businessobjects/WEB-INF/web.xml AND
c - CMC/Servers/Web Intelligence Report Server /Connection Time Out

Is headerplus.jsp file is related to session count in CMS?

Environment:
BOXIr2 SP3
Tomcat
WebI (only)

Thanks


raaj (BOB member since 2006-09-14)

Hi,

has anyone tried this out in Release 3.0, or is this built-in in the newest release?

//Björn


Bjorn :sweden: (BOB member since 2006-02-10)

The custom code in the headerplus.jsp file should not have any impact on the session timeout limits . Please check the web.xml file for the session time out limits . There are atleast 12 locations in the B.O XI installation where the timeouts are specified.


EnterpriseArchitect :us: (BOB member since 2006-03-23)

Hi has anyone managed to change the username to fullname in XI3.1 as I’ve tried to amend the code supplied above but am getting the below error.

An error has occurred: Exception in JSP: /jsp/listing/headerPlus.jsp:1455 1452: // // 1453: ////////////////////////////////////////////////////////////////////////////////////////////////// 1454: String fullName = ((CrystalIdentity)request.getSession().getAttribute(InfoViewConstants.INFOVIEW_SESSION)).getSession().getUserInfo().getUserName(); 1455: IInfoStore _infoStore = (IInfoStore)((CrystalIdentity)request.getSession().getAttribute(CEConstants.SESSION_EN_SESSION)).getSession().getService(“InfoStore”); 1456: StringBuffer user_query = new StringBuffer(“SELECT SI_USERFULLNAME FROM CI_SYSTEMOBJECTS WHERE SI_PROGID=‘CrystalEnterprise.USER’ AND SI_NAME = '” + fullName + “’”); 1457: IInfoObjects xiInfoObjects = _infoStore.query(user_query.toString()); 1458: Stacktrace:

Any guidance greatly appreciated.

kind Regards.

Simon


sijeffs :uk: (BOB member since 2007-01-19)

All,

In case anybody needs to know.

I have got this working in XI3.1 by using the script extracts provided and changing the one line

// IInfoStore _infoStore = (IInfoStore)((CrystalIdentity)request.getSession().getAttribute(CEConstants.SESSION_EN_SESSION)).getSession().getService(“InfoStore”);

to

IInfoStore _infoStore = (IInfoStore)((CrystalIdentity)request.getSession().getAttribute(InfoViewConstants.INFOVIEW_SESSION)).getSession().getService(“InfoStore”);

Hope this helps someone.

Regards.

Simon


sijeffs :uk: (BOB member since 2007-01-19)

I came up with this error

An error has occurred: Unable to compile class for JSP An error occurred at line: 1,427 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: fullName cannot be resolved An error occurred at line: 1,452 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: fullName cannot be resolved 

I’m running XI 3.1 and changed the two parts that grab the UserID and pasted the custom code over the top of it. Then I changed CEConstants to InfoViewConstants as Simon said to do. It was worth a shot as all my full names are imported through AD.


Schmitty (BOB member since 2006-11-16)

I know the question has already been asked, but there was no reply, has anyone done this for an IIS .Net deployment?


plessiusa :netherlands: (BOB member since 2004-03-22)

Hi tried it in R3.1 it shows the below error :

An error has occurred: Unable to compile class for JSP An error occurred at line: 1,413 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IInfoStore cannot be resolved to a type An error occurred at line: 1,413 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IInfoStore cannot be resolved to a type An error occurred at line: 1,413 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IInfoObject cannot be resolved to a type An error occurred at line: 1,413 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IInfoObject cannot be resolved to a type An error occurred at line: 1,413 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IUserBase cannot be resolved to a type An error occurred at line: 1,437 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IInfoStore cannot be resolved to a type An error occurred at line: 1,437 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IInfoStore cannot be resolved to a type An error occurred at line: 1,437 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IInfoObject cannot be resolved to a type An error occurred at line: 1,437 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IInfoObject cannot be resolved to a type An error occurred at line: 1,437 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IUserBase cannot be resolved to a type An error occurred at line: 1,461 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IInfoStore cannot be resolved to a type An error occurred at line: 1,461 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IInfoStore cannot be resolved to a type An error occurred at line: 1,461 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IInfoObject cannot be resolved to a type An error occurred at line: 1,461 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IInfoObject cannot be resolved to a type An error occurred at line: 1,461 in the jsp file: /jsp/listing/headerPlus.jsp Generated servlet error: IUserBase cannot be resolved to a type

Can any one help me out,.?

Please tell me the steps to sort it out.

Thanks,
JB


Jayabal :india: (BOB member since 2009-01-05)

Did you also change
SESSION_EN_SESSION
to
INFOVIEW_SESSION as shown?


adrian.rutter :uk: (BOB member since 2002-08-21)

Hi yes i changed thatalready. I have missed the required import tags for the corresponding Crystal report function. I corrected that problem. No more issues.

Thanks,
JB


Jayabal :india: (BOB member since 2009-01-05)

user ful names are blank in BOXI. What should i do to update the full name in the boxi.

Thanks for ur help.

-JB


Jayabal :india: (BOB member since 2009-01-05)