Skip to Content

sapui5 failed to load resource library

i am try to use smartform in sapui5 but its giving error like
Uncaught Error: failed to load 'sap/ui/layout/form/library.js' from resources/sap/ui/layout/form/library.js: 404 - Resource could not be found

though i can see the library is included in SAPUI5 core libraries

and i am using eclipse luna 4.4 and sapui5 version installed there is 1.44

and i added the sap.ui.layout in my index.html page as well .

please suggest ..thanks in advance

untitled.png (8.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • Posted on Jun 10, 2017 at 12:47 AM

    how u you run your app?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 10, 2017 at 09:26 AM

    Hi Soumyabrata,

    I think you have not entered the path of library.js in the file/Controller where you use it.

    It is not getting the library although you have entered. please check once.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 10, 2017 at 11:16 AM

    I run in web-app preview @jun

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 10, 2017 at 11:23 AM

    i included that library in my index.html file

    and i am using a java script view and using the from in 1st_view .view. js file ..........do i need to define the library sap.ui.layout here also ...if yes how to define????


    untitled2.png (111.0 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 11, 2017 at 12:42 AM

    this is my simple code;where i added the library sap.ui.layout.form .

    but still i get the error like below please help !!! am i doing something wrong!!!!please help


    code.png (106.7 kB)
    output.png (123.7 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 12, 2017 at 05:49 AM

    you should not have sap.ui.layout.form

    you should just sap.ui.layout in data-sap-ui-libs

    Thanks

    Dennis

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.