cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 development with SAP HANA web-based development workbench facing issue with resources.

0 Kudos
383

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

pfefferf
Active Contributor

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:

  • Use the public UI5 version as you do at the moment.
  • Switch to XS Advanced if possible (you have to do it anyway in the future).
  • "Install" a newer UI5 version in a different repository package and refer to it in your application.
0 Kudos

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