Request / save a specific version of UI5 for an application

I have an application using SAPUI5. I made extensive use of the result using my own CSS, which greatly improves the appearance and usability of the application.

A few weeks ago, a new release of SAPUI5 libraries was released at

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

(as well as AU and US servers). This new release has changed the display part of the buttons. This broke some of my CSS. (He also fixed many other problems, but unfortunately the broken CSS was much more obvious.)

Is there a way to request a specific version of UI5 when requesting from SAP-supported libraries? Or is it the only solution for copying the library and its own placement (and refer to the hosted version in my application?)

It seems unsuccessful if the second option is my only real choice, as this will mean that I will not use other applications that load UI5 libraries into the cache. Given how long it may take to load UI5 libs, this is a big shame.

I also note that jQuery itself very clearly indicates that you should never reference the latest version of your lib in your productive code:

http://blog.jquery.com/2014/07/03/dont-use-jquery-latest-js/

"So let's be clear: Do not use jquery-latest.js on a production site. "

I think the same should be true about UI5 - please tell me what it is? Or if this does not mean that it is planned?

Thanks!

NB I mean the libraries supported on HCP servers - https://sapui5.hana.ondemand.com , https://sapui5.ap1.hana.ondemand.com and https: //sapui5.us1.hana.ondemand .com is not a locally supported SAP server.

+8
css sapui5
source share
3 answers

And finally it happened:

https://help.hana.ondemand.com/help/frameset.htm?2d3eb2f322ea4a82983c1c62a33ec4ae.html

You can use SAPUI5 on any HTML page from the SAP HANA cloud platform with the following bootstrap boot script:

<script id="sap-ui-bootstrap" type="text/javascript" src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.m"></script>

If you want to make sure that you are referring to a stable version of SAPUI5, you can use the URL with the version, as in the example below:

<script id="sap-ui-bootstrap" type="text/javascript" src="https://sapui5.hana.ondemand.com/1.28.8/resources/sap-ui-core.js" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.m"></script>

The first segment of the URL after the host name is used to indicate a specific version of SAPUI5.

This is great news, and finally means that I can stop storing all my UI5 libraries as part of my projects, and hopefully users can cache them. Now just hope these libs versions are on CDN :)

+5
source share

currently only the latest version available on the internet.

It may make sense to change this and suggest the latest patch from the previous version. However, only the current version comes with fixes, and we want people to update to get fixes. We would not want 1.12 or so to still be available now, but when we propose a specific URL for this version, it will mean that we will just delete it once, which will greatly expand the applications ...

Another approach would be to provide a version of NEXT in advance, so developers who use the online version can test before we update the main URL. What do you think of this option?

By the way, this online version of UI5 is not necessarily the most optimized option, depending on the user's location, and we do not provide any guarantees of uptime, so when you use it, you can add some backup logic (for example, first check if it is determined window.sap, and if not, get UI5 from your own server.

Relations Andreas

+4
source share

In your SAP system, you will find not only the latest version of UI5, but also several older versions. This page shows all installed versions: http://<host>:<port>/sap/public/bc/ui5_ui5 .

Use the custom version as follows:

 <script id="sap-ui-bootstrap" src="resources/1.20/sap-ui-core.js" data-sap-ui-libs="sap.ui.commons" data-sap-ui-theme="sap_bluecrystal" > </script> 

Perhaps this is also interesting: http://help.sap.com/saphelp_nw74/helpdata/de/9f/eb96da02c2429bb1afcf6534d77c79/content.htm?frameset=/de/58/e82251e8242514e10000000a44176d/frameset.htm

0
source share

All Articles