Skip to Content
0

Pass user information to SAPUI5 app on SAP EP

Nov 10, 2016 at 06:32 PM

84

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Julio Alberto Martinez Real Nov 11, 2016 at 06:55 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

0
Jun Wu Nov 12, 2016 at 07:10 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Barbara Carmichael Nov 14, 2016 at 05:19 PM
0

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?

Share
10 |10000 characters needed characters left characters exceeded