cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 sap.ui.comp library for Value help dialog

Former Member
0 Kudos

Hi,

I have implemented a value help dialog for an input field. The problem is the related sap.ui.comp library which is needed for the value help. When I define the sap.ui.comp in my html:

<script id="sap-ui-bootstrap" src="resources/sap-ui-core.js"
data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.m, sap.ui.comp"

I get an error and the app is not loaded at all:

When I leave the sap.ui.comp undefined, of course my value help does not work:

What do I need to do to and why is it complaining about sap.ui.rta ?

Thanks,

Tim

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Any ideas?

0 Kudos

Actually I have no good idea whats going wrong on your machine.

You could have a look onto https://jsbin.com/catexocofu/edit?html,console,output

There you can see how you can check which ui5 libraries are loaded.

Have you tried to include an external SAPUI5 version via URL?

(You can testwise use the one of the linked example.)

Former Member
0 Kudos

Hi,

I have tried with the external link and yes, that works fine. Any way to force the load of the sap.ui.comp library?

Thanks,

Tim

0 Kudos

Hey Tim,

which SAPUI5 version are you using? Which platform? What's the source of your SAPUI5 package?

Have you checked if RTA is available in the folder structure?

In sap.ui.comp there is a dependency maintained to rta, that's the reason why it is loaded, too.

BR

Alex

Former Member
0 Kudos

Hi,

SAPUI5 version is 1.40, I am using Eclipse Neon. RTA is not available in the folder structure. Can I put it there manually or what could I do?

What are other options?

Thanks,

Tim

junwu
Active Contributor
0 Kudos

you run in eclipse or on your server? what's server ui5 version?

pierre_dominique2
Contributor
0 Kudos

Hi,

Quick check: are you using OpenUI5 or SAPUI5? sap.ui.comp is not part of OpenUI5.

Cheers,

Pierre

Former Member
0 Kudos

Hi,

using SAPUI5.

Br,

Tim