Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Show Username in Shell

$
0
0

Hello Experts,

 

I have created an XSJS file to get current username.

I am able to get the User from it and show it using Application Header

Below is the sample code:

jQuery.ajax({

               url : "../Services/User.xsjs",

               async : false,

               method : "GET",

               dataType : 'json',

               success : function(myJSON) {

oAppHeader.setUserName(myJSON.username);

               }

             });

 

But how can I show Username in Shell.

 

I know I need to create a TextView in Shell Header Item for it but how to pass the Username from XSJS file to this Text View

Please help me with this

 

Regards,

Rohit


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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