Skip to Content
avatar image
Former Member

SAPUI5 sap.ui.comp library for Value help dialog

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

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

    Hi,

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

    Cheers,

    Pierre

    Add comment
    10|10000 characters needed characters exceeded

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

    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

    Add comment
    10|10000 characters needed characters exceeded

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

    Any ideas?

    Add comment
    10|10000 characters needed characters exceeded

    • 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