cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 - ValueHelpDialog error

Former Member
0 Kudos

Hello,

I am trying to implement this example for the ValueHelpDialog.  When loading the library sap.ui.comp I get the following error:

failed to preload 'sap.ui.fl.library-preload': Resource could not be found! - sap.ui.ModuleSystem

Uncaught Error: found in negative cache: 'sap/ui/comp/library.js' from resources/sap/ui/comp/library- reload.json/sap/ui/comp/library.js: Error: failed to load 'sap/ui/fl/library.js' from resources/sap/ui/fl/library.js: 404 - Resource could not be found!

sap.ui.fl is missing from the included libraries in the project and is required by sap.ui.comp.

Here is the Index.html

<script src="resources/sap-ui-core.js"

                       id="sap-ui-bootstrap"

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

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

</script>

Does anybody have an idea on how to solve it?

Thank you for your help!

Best regards,

Laurentiu

Accepted Solutions (1)

Accepted Solutions (1)

kedarT
Active Contributor

Hi Laurentiu,

You need to add the library sap.ui.fl to data-sap-ui-libs in your index.html.

Also i think there are no controls in sap.ui.fl - SAPUI5 SDK - Demo Kit

Hope this helps.

Former Member
0 Kudos

Kedar,

Thank you for the reply.

The problem is that the library sap.ui.comp is requiring sap.ui.fl which is not in the UI toolkit.

jQuery.sap.declare("sap.ui.comp.library");jQuery.sap.require("sap.ui.core.Core");jQuery.sap.require("sap.ui.core.library");jQuery.sap.require("sap.ui.fl.library");..........

Please see bellow:


I also tried to reinstall everything, but I still get the same outcome.

Do you know correct this?

Regards,

Laurentiu

kedarT
Active Contributor
0 Kudos

Hi Laurentiu,

Just for the heck of trying it instead of sap.ui.comp add the library - sap.ui.comp.valuehelpdialog

It should not be the case, but would give it a try.

Former Member
0 Kudos


Hi Kedar,

Unfortunately this didn't help.

In your setup the library sap.ui.comp is requiring sap.ui.fl?

Regards,

Laurentiu

Former Member
0 Kudos

I managed to solve the issue.

The libraries that get downloaded with Eclipse from SAP Development Tools for Eclipse - Luna Software Repository are not correct. I downloaded the sdk from the SAP download center and now everything is working correctly.

Regards,

Laurentiu

ChandraMahajan
Active Contributor
0 Kudos

Hi,


Please mark this Discussion with a Correct Answer and Helpful Answer where appropriate.  See How to close a discussion and why  Even if you discovered the solution without any outside contributions, it helps others to understand what the solution turned out to be.


Regards,

Chandra (Moderator)

0 Kudos

Hi Merla,

        Can you tell  which sdk downloaded from SAP download center. I downloaded UI5TOOL11P_4-10011992.zip from download center , they mentioned this as recent version. But its not working , still I am getting same error

Regards ,

Sathish J

Former Member
0 Kudos

Sathish,

I downloaded UI5TOOL10_0-10011992 from the download center, as it's the same version that we have on our server.

Check what version you have on your system and the download that one, it should work.

Regards,

Laurentiu

Answers (1)

Answers (1)

0 Kudos

Thanks Merla . Now issue fixed.

Regards,

Sathish J