cancel
Showing results for 
Search instead for 
Did you mean: 

Hana Sap UI5 project error

0 Kudos

Hi all,

I am trying to create a simple button with alert on hana studio using sap UI5 project. I did all the procedures as mentioned. When i run it on the XS Engine it displays an empty page. But the same thing works perfectly on the demo video. I checked the error through developer tool its says that "sap is not defined". I am clear that my code was not able to access the UI5 library package. In the script i included the same path as they mentioned src="resources/sap-ui-core.js".  But i dont know why this error occurs. Whether i have to configure anything or the path mentioned is wrong???

View Entire Topic
thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>In the script i included the same path as they mentioned src="resources/sap-ui-core.js".

As the previous poster suggested, this is definitely the problem. In HANA the path resources/sap-ui-core.js is not correct.  It must be changed to /sap/ui5/1/resources/sap-ui-core.js (the case is important to HANA and therefore the above suggestion would still fail).