Skip to Content
0

SAPUI5 sap.ui.comp library for Value help dialog

Feb 14, 2017 at 02:03 PM

220

avatar image
Former Member

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

errorlog.png (4.5 kB)
valuehelp.png (3.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

avatar image
Former Member Feb 14, 2017 at 02:36 PM
0

Hi,

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

Cheers,

Pierre

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi,

using SAPUI5.

Br,

Tim

0
avatar image
Former Member
Feb 15, 2017 at 06:46 AM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

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

0
avatar image
Former Member Feb 15, 2017 at 10:32 AM
0

Any ideas?

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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.)

0
Former Member
Former Member

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