Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

SAP HANA ondemand - sap.ushell.bootstrap don't exist for display userid with SAPUI5

$
0
0

I try to use the solution from this page to display the id of user on sapui5 application. 

The needed snippet: sap.ushell.Container.getService("UserInfo").getId()

The sap.ushell don't contains any of service methods, described on this page.

It contains only ui-specific entries. The sap hana cloud by my account don't have any abap js, needed to initialize the sap.ushell:

For convenience, platform-specific bootstrap code is available and can be easily included (before the SAPUI5 bootstrap) by a corporate shell as follows:

<script> src="/sap/public/bc/ui5_ui5/resources/sap/ushell_abap/bootstrap/abap.js"></script> 

This bootstrap code will automatically defer the initialization of SAPUI5 until the container is available. This is the preferred way of bootstrapping the Unified Shell.

<script src=".../resources/sap/ushell_abap/bootstrap/abap.js"></script> <script id="sap-ui-bootstrap" src=".../sap-ui-core.js"></script> 

 

I declase data-sap-ui-libs="sap.m,sap.ui.commons, sap.ui.table,sap.ui.ux3,sap.ushell" and use the following source for sapui5

https://sapui5.hana.ondemand.com/1.34.9/resources/sap-ui-

core.js

 

How to initialize the sap.ushell in case of sap hana ondemand?

Thanks


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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