Class Index | File Index

Classes


File Index

shell.js

An API which allows applications to talk to a surrounding shell.

Note: Including this file automatically performs domain relaxation.
Since version 1.26.3, the way how domain relaxation is performed can be configured by setting the property domainRelaxation in the global variable sap-ui2-shell-api-config before including the script. The property domainRelaxation has to be an object with the following properties:


Possible values for integrated/standalone:

Possible value for maxrelax: Integer, that determines the number of domain parts, that have to be kept. E.g. 2 means "sap.com", 3 means "sub.sap.com"

Example:

window["sap-ui2-shell-api-config"] = {
  domainRelaxation : {
      integrated : "auto",
      standalone : "none",
      maxrelax : 2
  }
}

The default behavior is:

This means that when including the script without configuration, domain relaxation of 1 level is usually applied. This is also the default for all versions before 1.26.3.

Note: Including this file automatically transports the user's settings from an ABAP backend to SAPUI5, e.g. preferred language incl. its right-to-left status, date, time, and number formats, theme and possibly others (in future). For this to take proper effect, this file must be included before the SAPUI5 bootstrap. Beware! This has an effect on SAPUI5's bootstrap sequence with two known consequences:

  1. You must not refer to SAPUI5 code other than sap.ui.getCore().attachInit() until SAPUI5's core is properly initialized.
  2. You cannot include style sheets directly from the HTML page and override SAPUI5 style classes in them, because SAPUI5's bootstrap is delayed and their standard style sheets are included only after the page has loaded completely. Use jQuery.sap.includeStyleSheet() from your code and obey the first rule. Override SAPUI5 style classes with caution! Be sure not to break the built-in theming support, e.g. by hard-coding custom colors.

startup.js

A wrapper of the start_up service.

©Copyright (c) 2009-2014 SAP SE, All Rights Reserved
Documentation generated by JsDoc Toolkit 2.4.0 on Fri Sep 04 2015 02:52:17 GMT+0200 (MESZ)