cancel
Showing results for 
Search instead for 
Did you mean: 

How to display "Welcome Administrator" message on tool bar area?

former_member188632
Active Contributor
0 Kudos

Hello All,

My requirement is that i want to display the "Welcome clause" on portal tool area (i have changed the location of search filed to extreme right) instead of diaplaying it on Masthead??

I tried replacing the code that displayes this Welcome message from maasthear PAR file to tool area PAR file, but didnt work..Ay inputs on how can i do this? or is it at all possilble ??

Regards,

Ameya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ameya,

Add this code in u r tool area

<%@ taglib uri="NavigationTagLibrary" prefix="nav" %>

<%@ taglib uri="FrameworkTagLibrary" prefix="frm" %>

Welcome

<nav:ifNotAnonymousUser>

<frm:userFirstName /> <frm:userLastName />

</nav:ifNotAnonymousUser>

<nav:ifAnonymousUser>

Guest

</nav:ifAnonymousUser>

In the portalapp.xml file add this to the between <component-profile></component-profile>

<property name="NavigationTagLibrary" value="/SERVICE/com.sap.portal.navigation.navigationtaglibrary/taglib/TagLibrary.tld"/>

<property name="FrameworkTagLibrary" value="/SERVICE/com.sap.portal.pagebuilder/taglib/framework.tld"/>

Regards,

Mr.Chowdary

Answers (3)

Answers (3)

chinmaya_sahoo
Contributor
0 Kudos

Hi

Can u try with this

you have to modify the com.sap.portal.navigation.masthead.par.

To change "Welcome User Name" to "Hi User Name" you only have to change the string: "WELCOME_TEXT=Welcome" to "WELCOME_TEXT=Hi" in the file "headeriView_nls.properties" (and all other languages files, if you are working with more than one language).

For this you have to copy the file "com.sap.portal.navigation.masthead.par.bak" from the deployment directory under your own namespace, unpack and go to "PORTAL-INF\private\classes".

For other changes in the Welcome-string (i.e.: remove lastname) you will have to edit the "GetWelcomeMsg"-method from the file "HeaderiView.jsp".

After saving your changes, redeploy the par file, create a new Masthead-iView based on the portal component in the PAR and integrate this iView in your frameworkpage.

Cheers

Chinmaya

reward for helpful answers

former_member188632
Active Contributor
0 Kudos

FYI I am not changing masthead PAR file, i have already stated that instead of masthead i want that message on my tool area,

Mr. Choudury, thanks for the input, i am trying with your code, will get back to you once i try it. Thanks again !!

Regards,

Ameya

Former Member
0 Kudos

check this link

reward points if helpful

Former Member
0 Kudos

Hi,

I think it should be possible. Have you included the appropriate property file (CSS) and the necessary javascript function (i.e, method)?

Regards,

Harini S

former_member188632
Active Contributor
0 Kudos

Hi,

Thanks for the reply,

You mean to say "GetWelcomeMsg" method?? which else files needed to be include? can you tell me in detail??

Regards,

Ameya

Former Member
0 Kudos

Hi,

Yes. I mean that method only. Other than that there is a property file which defines the order of String to display. Just check under CSS folder or private/css. I don't have access to portal now. So I couldn't verify it.

Regards,

Harini S

former_member188632
Active Contributor
0 Kudos

Hi,

Yes i copied the same method to toolareaivew.jsp and the only css file that is present in masthead PAR is "lightHeader.css" is it this file?? What else i needed to be done?? Any idea?

Regards,

Ameya

Former Member
0 Kudos

Hi,

I think you should open and check that file. Look for Welcome_text or something similar to that in the css file. If so, include that also in your toolbar par. I already told you I don't have access to portal. So I can't check. Check and let me know.

Regards,

Harini S