Answers for "To access the SAPUI5 version at runtime, you can use the following code:"

0

To access the SAPUI5 version at runtime, you can use the following code:

sap.ui.require([
    "sap/ui/VersionInfo",
    "sap/base/util/Version"
], function(VersionInfo, VersionUtil) {
    VersionInfo.load().then(function(oCurrentVersionInfo) {
        var oVersionUtil = new VersionUtil(oCurrentVersionInfo.version);
        // ...
    });
});
Posted by: Guest on April-28-2022

Code answers related to "To access the SAPUI5 version at runtime, you can use the following code:"

Browse Popular Code Answers by Language