cancel
Showing results for 
Search instead for 
Did you mean: 

Pass user information to SAPUI5 app on SAP EP

bCarmichael
Explorer
0 Kudos

I have a custom SAPUI5 app running on the Enterprise portal (7.4) and want the user information from the Portal accessible to the SAPUI5 app. I am not sure how to obtain that information.

Environment setup: The SAPUI5 application is in the Web Resource Repository on the portal. I have created an UI5 iView on the portal that calls the SAPUI5 application. We are using fiori that is installed on the Portal.

I need the user name and email address for use in the sapui5 application. I have tried to pass this as via the iView propertyParameters forwarded to UI5. I have set this to be user=<User.LogonUid>. This is not working.

How can I get the user information in the SAPUI5 application based upon the Portal user information?

Accepted Solutions (0)

Answers (3)

Answers (3)

bCarmichael
Explorer
0 Kudos

I thought the user login id would be in the URL when the application was initiated. I am not seeing it there. What should the coding be to get it?

junwu
Active Contributor
0 Kudos

user=<User.LogonUid> when u set this, what's the code used to get it?

0 Kudos

create your own servlet/rest/odata service and read this from there.

bCarmichael
Explorer
0 Kudos

Please provide a sample on how you would get that information from the EP. I would think that it should be available when running the SAPUI5 application from the Fiori launchpad that is on the EP.