Namespace sap.ushellModule: sap/ushell/services/Container
Since: 1.15.0.
sap.ushell.bootstrap()
has finished. - Since:
- 1.15.0
sap.ushell.Container
. 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> <script id="sap-ui-bootstrap" src=".../sap-ui-core.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.
Note: For SAPUI5 application projects the recommended way is to add a dependency to the "sap.ushell_abap" library (<groupId>com.sap.ushell</groupId> <artifactId>ushell_abap</artifactId>
) and load the bootstrap code via the application's resources folder:
<script src=".../resources/sap/ushell_abap/bootstrap/abap.js"></script> <script id="sap-ui-bootstrap" src=".../sap-ui-core.js"></script>
Since 1.15.0 you can provide the function window['sap.ushell.bootstrap.callback']
for calling back from this method asynchronously. SAPUI5's bootstrap is ongoing then. The same restrictions apply as for the function window['sap-ui-config']['xx-bootTask']
) when the Unified Shell container has not yet finished its bootstrap. You cannot delay the bootstrap of SAPUI5 or the Unified Shell container; any errors are ignored. This callback is useful for sending asynchronous back-end requests at the earliest opportunity without delaying the core bootstrap of SAPUI5 and the Unified Shell container.
{string} | sPlatform | the target platform, such as "abap" or "local" (Note: there is no fixed enumeration of possible platforms) |
{map. | mAdapterPackagesByPlatform?, Default: {} | the map with platform specific package names for the service adapters. You only need to specify these package names, if they differ from the standard name "sap.ushell.adapters." + sPlatform . |
- Since:
- 1.15.0
{jQuery.Promise} | a promise that is resolved once the container is available |
sap.ushell.Container |