Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos
Problem:
A customer is developing a custom UI5 tile in HANA studio according to the links below:
Custom UI5 Tiles
Creating custom tiles with SAP HANA UI Integration Services (UIS)

But he got an error in browser's F12 console:
"2016-10-04 15:22:55 The view instantiation resulted in js errorTypeError: Cannot read property 'ui' of undefined - "

His code looks like:



Root cause:
The error occurs because sap.suite is not loaded.

Solution:
The code examples shown on the Creating custom tiles with SAP HANA UI Integration Services (UIS) are done as XML view. The xml namespace is parsed by the XML preprocessor and the sap.suite.ui.commons lib is loaded automatically. If a JsView is used, this step needs to be done manually.
"sap.ui.getCore().loadLibrary("sap.suite.ui.commons");"

This loads the suite-ui-commons lib.