Legacy API Method on Configuration
|
New Module
|
Replace With
|
applySettings
|
-
|
Deprecated without replacement.
This API method, which was typically used via sap.ui.getCore().getConfiguration().applySettings() , is superseded by different dedicated facade modules addressing the corresponding topics. It's therefore not possible to use a generic pattern to replace these calls.
Check the API documentation of sap.ui.core.Configuration and use the references below to find the correct replacement.
|
getAccessibility
|
sap/ui/core/ControlBehavior
|
ControlBehavior.isAccessibilityEnabled()
|
getActiveTerminologies
|
sap/base/i18n/Localization
|
Localization.getActiveTerminologies()
|
getAllowlistService
|
sap/ui/security/Security
|
Security.getAllowlistService()
|
getAnimation
|
sap/ui/core/ControlBehavior
|
ControlBehavior.getAnimationMode()
|
getAnimationMode
|
sap/ui/core/ControlBehavior
|
ControlBehavior.getAnimationMode()
|
getAppCacheBuster
|
-
|
Deprecated without replacement
|
getAppCacheBusterMode
|
-
|
Deprecated without replacement
|
getApplication
|
-
|
Deprecated without replacement. Use sap/ui/core/ComponentSupport instead. See also Declarative API for Initial Components.
|
getAutoAriaBodyRole
|
-
|
Deprecated without replacement
|
getCalendarType
|
sap/base/i18n/Formatting
|
Formatting.getCalendarType()
|
getCalendarWeekNumbering
|
sap/base/i18n/Formatting
|
Formatting.getCalendarWeekNumbering()
|
getCompatibilityVersion
|
-
|
Deprecated without replacement
|
getDebug
|
-
|
Deprecated without replacement
|
getFileShareSupport
|
-
|
Deprecated without replacement
|
getFiori2Adaptation
|
-
|
Deprecated without replacement
|
getFlexibilityServices
|
-
|
Deprecated without replacement
|
getFormatLocale
|
sap/base/i18n/Formatting
|
Formatting.getLanguageTag()
The new API returns an sap/base/i18n/LanguageTag . There are two possibilities to replace the deprecated API calls using the new formatting API:
-
Either you replace the deprecated API by transforming the retrieved new LanguageTag into an sap/ui/core/Locale . To do so, require sap/ui/core/Locale and pass the LanguageTag as a parameter to the Locale constructor.
-
Alternatively, you adjust the usage of the locale to the new LanguageTag API.
// either transform LanguageTag into Locale and use as before
sap.ui.require([
"sap/base/i18n/Formatting",
"sap/ui/core/Locale"
], (Formatting, Locale) => {
// Transform LanguageTag to Locale
const oFormatLocale = new Locale(Formatting.getLanguageTag());
const sFormatLanguage = oFormatLocale.getLanguage();
});
// or adjust usage of Locale to LanguageTag API
sap.ui.require([
"sap/base/i18n/Formatting"
], (Formatting) => {
const oFormatLanguageTag = Formatting.getLanguageTag();
const sFormatLanguage = oFormatLanguageTag.language;
});
|
getFormatSettings
|
sap/base/i18n/Formatting
|
Formatting
The getFormatSettings API is superseded by the Formatting facade itself.
sap.ui.require([
"sap/base/i18n/Formatting",
"sap/base/i18n/date/CalendarType"
], (Formatting, CalendarType) => {
Formatting.setCalendarType(CalendarType.Islamic);
});
|
getFrameOptions
|
sap/ui/security/Security
|
Security.getFrameOptions()
|
getInspect
|
-
|
Deprecated without replacement
|
getLanguage
|
sap/base/i18n/Localization
|
Localization.getLanguage()
|
getLanguageTag
|
sap/base/i18n/Localization
|
Localization.getLanguageTag().toString()
|
getLocale
|
sap/base/i18n/Localization
|
Formatting.getLanguageTag()
The new API returns an sap/base/i18n/LanguageTag . There are two possibilities to replace the deprecated API calls using the new formatting API:
-
Either you replace the deprecated API by transforming the retrieved new LanguageTag into an sap/ui/core/Locale . To do so, require sap/ui/core/Locale and pass the LanguageTag as a parameter to the Locale constructor.
-
Alternatively, you adjust the usage of the locale to the new LanguageTag API.
// either transform LanguageTag into Locale and use as before
sap.ui.require([
"sap/base/i18n/Localization",
"sap/ui/core/Locale"
], (Localization, Locale) => {
// Transform LanguageTag to Locale
const oLocale = new Locale(Localization.getLanguageTag());
const sLanguage = oLocale.getLanguage();
});
// or adjust usage of Locale to LanguageTag API
sap.ui.require([
"sap/base/i18n/Localization"
], (Localization) => {
const oLanguageTag = Localization.getLanguageTag();
const sLanguage = oLanguageTag.language;
});
|
getManifestFirst
|
-
|
Deprecated without replacement
|
getNoDuplicateIds
|
-
|
Deprecated without replacement
|
getOriginInfo
|
-
|
Deprecated without replacement
|
getRootComponent
|
-
|
Deprecated without replacement
|
getRTL
|
sap/base/i18n/Localization
|
Localization.getRTL()
|
getSAPLogonLanguage
|
sap/base/i18n/Localization
|
Localization.getSAPLogonLanguage()
|
getSecurityTokenHandlers
|
sap/ui/security/Security
|
Security.getSecurityTokenHandlers()
|
getStatisticsEnabled
|
-
|
Deprecated without replacement
|
getTheme
|
sap/ui/core/Theming
|
Theming.getTheme()
|
getTimezone
|
sap/base/i18n/Localization
|
Localization.getTimezone()
|
getUIDPrefix
|
sap/ui/base/ManagedObjectMetadata
|
ManagedObjectMetadata.getUIDPrefix()
|
getVersion
|
sap/ui/VersionInfo
|
VersionInfo.load()
The getVersion method always returned the OpenUI5 version. Check the samples below on how to get either the SAPUI5 or OpenUI5 version. For more information, see Versioning and Maintenance of SAPUI5.
sap.ui.require([
"sap/ui/VersionInfo",
"sap/base/util/Version"
], function(VersionInfo, VersionUtil) {
// access the SAPUI5 version at runtime
VersionInfo.load().then(function(oCurrentVersionInfo) {
const oSAPUI5Version = new VersionUtil(oCurrentVersionInfo.version);
// ...
});
// access the OpenUI5 version (core version) at runtime
VersionInfo.load("sap.ui.core").then(function(oCurrentVersionInfo) {
const oOpenUI5Version = new VersionUtil(oCurrentVersionInfo.version);
// ...
});
});
|
getWhitelistService
|
sap/ui/security/Security
|
Security.getAllowlistService()
|
setAnimationMode
|
sap/ui/core/ControlBehavior
|
ControlBehavior.setAnimationMode()
|
setCalendarType
|
sap/base/i18n/Formatting
|
Formatting.setCalendarType()
|
setCalendarWeekNumbering
|
sap/base/i18n/Formatting
|
Formatting.setCalendarWeekNumbering()
|
setFormatLocale
|
sap/base/i18n/Formatting
|
Formatting.setLanguageTag()
The deprecated API only accepted a string, whereas the new API also accepts an sap/base/i18n/LanguageTag .
|
setLanguage
|
sap/base/i18n/Localization
|
Localization.setLanguage()
|
setRTL
|
sap/base/i18n/Localization
|
Localization.setRTL()
|
setSecurityTokenHandlers
|
sap/ui/security/Security
|
Security.setSecurityTokenHandlers()
|
setTheme
|
sap/ui/core/Theming
|
Theming.setTheme()
|
setTimezone
|
sap/base/i18n/Localization
|
Localization.setTimezone()
|