cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable Logout Popup onclick of Logoff in EP 7.4 and AFP Masthead.?

vdurgarao09
Contributor
0 Kudos

Dear All,

    When I click on the Log Off  link in the portal, it should not ask for confirmation, it should directly logoff from the portal. Is there any configuration available to disable the popup or else I want to edit the WAR file (com.sap.portal.navigation.afp.masthead.war)-(EP 7.4 and AFP Masthead.)

Please tell me the process.

Thanks in advance

Thank and Regards,

Durga Rao.

Accepted Solutions (1)

Accepted Solutions (1)

former_member246153
Active Contributor
0 Kudos

Hi Durga,

     As far as i know we don't have any configuration for that. Only way is to customize the coding in AFP masthead war file like below. You can call below code on click of logoff button in masthead

$('#logoff').click(function _onclick() {

LSAPI_sessionPlugin.logoff();

});

Regards,

Srinivasan V

vdurgarao09
Contributor
0 Kudos

Hi Srinivasan,

Thank you for the replay.

Please explain the Logoff link clicking time in this file  afpmasthead.js level this code is working.

  var ah=LSAPI.AFPPlugin.configuration.getClientSideAttributeValue(W,"logoffHyperlink");

  logoffLinkElement=NovaHyperlink.createNovaHyperlink("logoff",ah);

  logoffLinkElement.title=ah;var aJ=LSAPI.AFPPlugin.configuration.getClientSideAttributeValue(W,"logoffTitle");

  var ax=LSAPI.AFPPlugin.configuration.getClientSideAttributeValue(W,"logoffMessage");

  var an=LSAPI.AFPPlugin.configuration.getClientSideAttributeValue(W,"ACC_BUTTON_YES");

  var aF=LSAPI.AFPPlugin.configuration.getClientSideAttributeValue(W,"ACC_BUTTON_NO");

  var aO=LSAPI.AFPPlugin.configuration.getClientSideAttributeValue(W,"logoffYesButton");

  var av=LSAPI.AFPPlugin.configuration.getClientSideAttributeValue(W,"logoffNoButton");

  logoffLinkElement.onkeydown=function(aV)

  {

  var aS;

  var aR=aV||window.event;

  if(aR.keyCode==AccessibilityManager.KEY_ENTER||aR.keyCode==AccessibilityManager.KEY_SPACE)

  {

  aS=NovaDialogBox.createLogoffDialogBox(aJ,ax,aO,av,"260","126");

  AccessibilityManager.setItemOpenerElement(logoffLinkElement);

  var aU=aS[0];AccessibilityManager.setElementAccessibilityTooltip(aU,ax+" "+an);

  var aT=aS[1];AccessibilityManager.setElementAccessibilityTooltip(aT,aF)

  }

  };

  logoffLinkElement.onmouseup=function(aS)

  {

  var aR=aS||window.event;NovaDialogBox.createLogoffDialogBox(aJ,ax,aO,av,"260","126")

  }

Please tell me where i need to change the code.I tried but not working any action.

Regards,

Durga Rao.

former_member246153
Active Contributor
0 Kudos

Hi,

Can you add LSAPI.sessionPlugin.logoff() inside two fuctions logoffLinkElement.onkeydown and logoffLinkElement.onmouseup

logoffLinkElement.onkeydown=function(aV){

// Remove all the code here and add

LSAPI.sessionPlugin.logoff();

}

logoffLinkElement.onmouseup=function(aS){

// Remove all the code here and add

LSAPI.sessionPlugin.logoff();

}

Hope it will work.. I don't have code to test..

Regards,

Srinivasan V

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Durga and Srinivas,

     Can you please tell what is the component name for the logoff window ?

How can I get to that code level ?

Thanks

Sujata Kolla

former_member246153
Active Contributor
0 Kudos

Hi Suiata,

Can you please raise a separate thread for this..

Regards,

Srinivasan V

vdurgarao09
Contributor
0 Kudos

Hi Srinivasan,

Thank you for the replay.

I  got some threads and i am trying.I am not able to get ,i will post.

Regards,

Durga Rao.

vdurgarao09
Contributor
0 Kudos

Hi Srinivasan,

Thank you for the replay.

It is working.But one more problem Chrome browser level Reload time and logoff time one pop came.Like closing and that pop close disable how to control.

Regards,

Durga Rao.

former_member246153
Active Contributor
0 Kudos

Hi,

     I am not able to understand your reply, Can you please explain it clearly? And also Can you post any screenshot of the pop-up which you are talking about?

Regards,

Srinivasan V

vdurgarao09
Contributor
0 Kudos

Hi,

I am taking the following Issue.

Regards,

Durga Rao.

former_member246153
Active Contributor
0 Kudos

Hi,

     Yes that is DSM terminator pop-up which will be called to invalidate the Portal/Backend sessions. I think we cannot control this until we design a custom framework for portal.

Regards,

Srinivasan V

vdurgarao09
Contributor
0 Kudos

Hi Srinivasan,

Thank you for the replay.

Please  tell me how to set the idle time out in AFP masthead and classical masthead in 7.4

Regards,

Durga Rao.

former_member246153
Active Contributor
0 Kudos

Hi,

I hope you got the answer for this thread.

For session time out can you post it as a separate thread, so that it will be helpful for others..

Regards,

Srinivasan V