Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9990

SAPUI5 Logoff event in ApplicationHeader

$
0
0

I am currently working on a SAP XS application. Using the API, I want to log off my user on the website. Im totally new on Javascript soplease dont mind the probable ease of my question.

The API (https://sapui5.hana.ondemand.com/sdk/docs/api/symbols/sap.ui.commons.ApplicationHeader.html#event:logoff) provides the method "fireLogoff". But before that I have to add "attachLogoff" to the applicationheader in my application, right?

My faulty method looks like this:

oAppHeader.attachLogoff(

     function(oControlEvent){

          alert("Logging off...");

          fireLogOff();

     }

);

Thank you a lot for helping me in this matter.


Viewing all articles
Browse latest Browse all 9990

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>