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