cancel
Showing results for 
Search instead for 
Did you mean: 

Log-off URL change in Ajax Framework Page

PuneetSaxena
Contributor
0 Kudos

Hi,

I'd like to change the Log-off URL of the Ajax Framework Page.

I tried to change the method : closePortalPlace in afpmasthead.js and afpmasthead.js.org but the changes are not reflecting.

Please suggest possible pointers to change the log-off URL in Ajax Framework Page in Portal 7.0.

Thanks

Puneet

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Puneet,

Are you sure you are running AJAX framework page on 7.0 portal?

Anyhow, you can find a guide to change log off URL here.

Regards,

Ivan

* Read my blog here

PuneetSaxena
Contributor
0 Kudos

Hi

It's 7.01 SP7

I changed the parameter

ume.logoff.redirect.url=http://<server>/<logoffpage>

but no change.

Thanks

Puneet

Former Member
0 Kudos

Hi Puneet,

Did you restart the java instance?

PuneetSaxena
Contributor
0 Kudos

Hi Ivan,

Even after restart there is no affect.

Actually, i want to handle it via code.

I've different set of users and for them different desktops are assigned and based on certain criteria, i want to change the log-off URL.

Please suggest.

Thanks

Puneet

Former Member
0 Kudos

Hi Puneet,

I believe you should develop a custom masthead component then, and alter your logoff URL according to your tailor-made logic.


Regards,

Ivan

Former Member
0 Kudos

Hi Puneet,

I believe you should develop a custom masthead component then, and alter your logoff URL according to your tailor-made logic.


Regards,

Ivan

PuneetSaxena
Contributor
0 Kudos

Hi Ivan,

I don't think that a custom masthead component is required here.

If you look at the standard masthead code -> HeaderiView.jsp file, there is a method:

private String GetLogoffURL(IPortalComponentRequest request)

{

          IPortalComponentURI logoffURI = request.createPortalComponentURI();

  String str = logoffURI.toString();

          return str;

}

Here we can change the logic to change the log-off based on certain criteria. For me also, this is working fine.

Now, I'm trying to acheive the same in AjaxFramework Masthead.

I'm able to find a JSP file : Masthead.jsp which call as JS file aspmasthead.js, but not sure how can change the code there and how to add my logic there.

So any pointer in this regard will be highly appreciated.

Thanks

Puneet

saar_dagan
Employee
Employee
nol_hendrikx
Active Contributor
0 Kudos

Hi Puneet,

Within a custom AJAX framework, the logoff is triggered by javascript (LSAPI >

LSAPI_sessionPlugin.logoff();). In the standard AJAX framework a lot of javascript files are loaded:

/com.sap.portal.epcf.loader/script/optimize/js13_epcf.js

/com.sap.portal.pagebuilder/scripts/pagesupport.js

/com.sap.portal.navigation.afp.resources/scripts/optimize/core_navigation.js

/com.sap.portal.navigation.afp.widgets/scripts/optimize/afp_ui.js

/com.sap.portal.navigation.afp.layout/scripts/AFPLayoutFramework.js

/com.sap.portal.navigation.afp.masthead/scripts/afpmasthead.js

/com.sap.portal.navigation.afp.tln/scripts/optimize/afpui_tln.js

/com.sap.portal.navigation.afp.pagetoolbar/scripts/toolbar.js

/com.sap.portal.navigation.afp.dtn/scripts/dtn_functions.js

/com.sap.portal.navigation.afp.dynamicnavigation/scripts/dynamicnavigation.js

Opening the files and searching for logoff() resulted in a hit! com.sap.portal.navigation.afp.widgets/scripts/optimize/afp_ui.js has the logoff() function. But...

You better create your own framework and modify only one file (com.sap.portal.AFPpage/com.sap.portal.AFPResources). If you create a custom framework the only standard component you will need is the AFPResources. All necessary LSAPI functions are located in that component.

Cheers,

Noel

nol_hendrikx
Active Contributor
0 Kudos

Wow hang on....

You are working with 7.01! The Ajax frameworkpage isn't customizable then.

Check out this reply from >

Cheers,

Noel

hofmann
Active Contributor
0 Kudos

The important part here is the SAP Note: https://service.sap.com/sap/support/notes/1166135

"Ajax Framework Page in NetWeaver 7.0 Enhancement Package 1 is not customizable and aimed to be used "as is""

and

"Customers who use the portal for  releases prior to SAP Business Suite 7 or who use the portal in  non-application scenarios (e.g. Intranet/Extranet) may not use the "SAP  Signature Design" at the moment since these scenarios typically require  a highly customized Look&Feel that is not yet provided by the current  Ajax framework page"

Or: AFP in 7.01 is intended to be used as SAP ships it. You should not customize it.