cancel
Showing results for 
Search instead for 
Did you mean: 

Portal 7.3 masthead customization - How to remove Logoff dialog box "Are you sure you want to logoff?"

sarah_bavousett
Participant
0 Kudos

Portal 7.3 masthead customization - How to remove Logoff dialog box "Are you sure you want to logoff?"

I have recently upgraded our portal to 7.3 sps10 and we are using the Ajax framework

I have a requirement to Remove the Logoff Dialog box "Are you sure you want to logoff?"

I am able to Import masthead.war into NWDS and get the project ready for development with the appropriate jar and libraries.

I am able to deploy the project also. I need help finding How to turn this dialog box off and just log the user off. I was able to accomplish this in Classic frame work page HeaderiView.jsp.

I have looked at afpmasthead.org.sj and masthead.jsp. I am not a js/jsp developer.

I can see the logoff dialog box being created but I am having trouble finding the logoff code.

Please advise me on the code changes required to remove the  Logoff dialog box "Are you sure you want to logoff?" from the Ajax framework.

Any help on this matter would be greatly appreciated.

Thank you

Sarah

Accepted Solutions (1)

Accepted Solutions (1)

troy_cronin2
Active Contributor
0 Kudos

Dear Sarah

I hope you are well and many thanks for logging this scenario on the forums.

Regarding your query of how "How to remove Logoff dialog box "Are you sure you want to logoff?"

Firstly regarding the Masthead itself and its customization I recommend reviewing the following SAP Thread for a comprehensive overview:

How to download and change AFP Masthead on SAP Portal 7.3

http://scn.sap.com/thread/3265584

Now regarding the logoff option notification kindly see the following SAP documentation link:

Configuring the Portal Logoff URL

https://help.sap.com/saphelp_nw70/helpdata/en/44/aada5230be5e77e10000000a155369/content.htm

Kind Regards

Troy Cronin

sarah_bavousett
Participant
0 Kudos

Thank you Troy for your Helpful Threads.

Problem Solution:

Followed the thread on How to download and change AFP Masthead on SAP Portal 7.3

Located the file which contains the logoff code from thread http://scn.sap.com/thread/3265584

The File with the Logoff coding in it is a Javascript file afpmasthead.js

Identified logoff code without dialog box using this thread https://scn.sap.com/thread/3307601

NovaDialogBox.performLogout();    (perform logoff)

I was able to remove the Logoff dialog box Do you really want to logoff? And replace it with logging the user off.

afpmasthead.js  All the code is on 1 line,  To fix this go to -->Source -->Format

Comment out the following lines of code and replace with logoff code

logoffLinkElement.onmouseup= function(aS) {

logoffLinkElement.onmouseup= function(aS) {

NovaDialogBox.performLogout();

Sarah

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

With NWDS , do global search (Ctrl+h) with window.showModalDialog or window.showModalDialog('/irj/servlet/prt/portal/prtroot/com.sap.portal.navigation.masthead.logoffConfirmMsg ...

you may check  on masthead , toolbar or top level navigation (tln).

Below another link to perform  logout :

/irj/servlet/prt/portal/prtroot/com.sap.portal.navigation.portallauncher.default?logout_submit=true&login_do_redirect=1