cancel
Showing results for 
Search instead for 
Did you mean: 

FIORI: Edit the “logoff.js” file for the HR Leave Request Fiori App.

0 Kudos

Hello Colleagues,

we want to edit the “logoff.js” file for the HR Leave Request Fiori App.

Whatever changes are done in this  .js  file, it is not taken into account and does not reflect anything in the application.

It looks like when the app is deployed on the server these files get stored in 2 different place or cached for some reason.

We have cleared all the cache and even did a system restart, no luck.

Any ideas?

We appreciate your help and feedback.

Cheers,
Peter

Tags edited by: Michael Appleby

Accepted Solutions (0)

Answers (2)

Answers (2)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

I don't know which logoff service is called from the app.

If /sap/public/bc/icf/logoff is called, please check the redirect function in SICF.

1509851 - ICF logoff service with redirectURL

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Regarding your answer Masa (SAP Note 1509851). How can I add this parameter redirectUrl to url with ICF service /sap/public/bc/icf/logoff ? I would like to redirect to launchpage home page when I logoff.

Regards,

Kamil

jamie_cawley
Advisor
Advisor
0 Kudos

You can set the redirect value in the service within tcode sicf.   You can find this under Error Page – Logoff Page.

Regards,

Jamie

Former Member
0 Kudos

Everytime I want to save changes, information with following message shows up:

Enter user password

Message no. SR053

Any idea why?

jamie_cawley
Advisor
Advisor
0 Kudos

You will need to provide user/pw on the logon data tab.

Regards,

Jamie

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Could you explain me what kind of user/pw I should provide? I am new in SAP / SAP Fiori and I would like to understand what exactly I am doing

jamie_cawley
Advisor
Advisor
0 Kudos

There may be a user already entered there so either provide the password for it or just clear it out.

Jamie

Former Member
0 Kudos

Thank you very much for help Jamie !

jamie_cawley
Advisor
Advisor
0 Kudos

All of the uilib contents are downloaded to a client within a library-preload file, which is a minimized file containing the entire library including the file logoff.js.  This is done to mitigate the number of files needed by the client and improve loading times.  In theory you could create a new library-preload, but the intent here is to be a common library that probably shouldn't be modified.  I would recommend that you create your own implementation and change Main.controller.js to point to your own.

If you open the file UI5RepositoryPathMapping.xml you can determine what file is used…

  <MappingEntry

   path              = "resources/sap/ca/common/uilib/library-preload.json"

   is_folder         = ""

   internal_rep      = "B"

   internal_rep_path = "UI5BD9BFA3DA7A018FA66CE8582965F46CF1663E4B7" />

Regards,

Jamie

SAP - Rapid Innovation Group