cancel
Showing results for 
Search instead for 
Did you mean: 

Import 'sap.ui.comp' for using ValueHelpDialog control

former_member182374
Active Contributor

Hello Experts,

I'm trying to import the 'sap.ui.comp' library:


        <script src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"

                 id="sap-ui-bootstrap"

                 data-sap-ui-libs="sap.m, sap.ui.comp"

                 data-sap-ui-theme="sap_bluecrystal">

         </script>

But when I run the application I get:


GET https://openui5.hana.ondemand.com/resources/sap/ui/comp/library-preload.json 404 (Not Found) sap-ui-core.js:27

2015-08-26 14:27:55 failed to preload 'sap.ui.comp.library-preload': Not Found -  sap.ui.ModuleSystem sap-ui-core.js:80

GET https://openui5.hana.ondemand.com/resources/sap/ui/comp/library.js 404 (Not Found) sap-ui-core.js:27

Uncaught Error: failed to load 'sap/ui/comp/library.js' from https://openui5.hana.ondemand.com/resources/sap/ui/comp/library.js: 404 - Not Found sap-ui-core.js:80

2015-08-26 14:27:56 registerResourcePath ('testvaluehelp', './testvaluehelp/') -  sap.ui.ModuleSystem

What am I missing? How can I use the ValueHelpDialog control?

Regards,

Omri

Accepted Solutions (1)

Accepted Solutions (1)

santhu_gowdaz
Active Contributor
santhu_gowdaz
Active Contributor
0 Kudos

Open UI5 not having that control-OpenUI5 SDK - Demo Kit

SAP UI5 having-SAPUI5 SDK - Demo Kit

former_member182374
Active Contributor
0 Kudos

Thanks Santhosh Gowda.

Does it mean that the library is not a part of openui5?

Regards,

Omri

santhu_gowdaz
Active Contributor
0 Kudos

yes exactly, checkout above OpenUI5 and SAP UI5 API's.

former_member182374
Active Contributor
0 Kudos

Thanks

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Omri,

sap.ui.comp is not available in OpenUI5. To quickly verify this, you can hit the following

urls :

https://openui5.hana.ondemand.com/resources/sap/ui/comp/smarttable/SmartTable.js

This will give 404.

Where as :

https://sapui5.hana.ondemand.com/resources/sap/ui/comp/smarttable/SmartTable.js

will give you the library code.

So change your bootstrap to point to SAPUI5.

Former Member
0 Kudos

hi Omri,

Try with below url :

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

Thanks & best regards

Aasif Shah