on 2018 Dec 06 10:01 AM
Hello,
I am new in SAPUI5 and I am using SAP HANA web based development workbench for developing a sapui5 application. I am facing issue with the src path.
If I am using this : src="/sap/ui5/1/resources/sap-ui-core.js"
then I am getting the error of loading the resource:
Uncaught Error: failed to load 'sap/tnt/ToolPage.js' from /sap/ui5/1/resources/sap/tnt/ToolPage.js: TypeError: Cannot set property 'ToolPage' of undefined
as you can see in image file there is no tnt folder under the "Sap>ui5>1>resources>sap>".
so for now I am using the online src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" path for loading all the resources on the application but I want to consume local src="/sap/ui5/1/resources/sap-ui-core.js".
Please guide me accordingly.
Request clarification before answering.
sap.tnt.ToolPage is available since UI5 version 1.34, as you can read in the API reference. HANA XS (classic) is delivered with UI5 version 1.28..43 as it can be read in note 2391948. The note mentions that there are no plans to update the UI5 version anymore for XS classic (because it is already set to deprecated). Manually updating the UI5 version is not a good plan, because then maybe standard SAP XS apps will not work anymore. So you have following options:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Florian,
Thank you so much for your comments, can you please explain me in details how I can install the new UI5 version in a different repository package and then refer to it in my application?
I know how to do the installation on eclipse or SAP HANA studio but I don't know if you are talking about same or something else. and if it same then how should I refer to it into my application? Please explain it briefly.
Thank you.
Aditya
User | Count |
---|---|
56 | |
10 | |
8 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.