on 09-09-2014 7:43 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.