Skip to Content
author's profile photo Former Member
Former Member

SAPUI5:Error-failed to load sap.ui.layout.form.library!!

Hi Experts,

I am getting this error message when I have already added the path of the library in the HTML page.

I am trying to execute the examples from SAPUI5 SDK - Demo Kit but the examples which talk about ResponsiveLayout,ResponsiveGridLayout and ResponsiveFlowLayout are not working.

There is a problem with loading of one library as per the error message.

Error message-

SCRIPT5022: failed to load 'sap.ui.layout.form.library' from /sapui5/resources/sap/ui/layout/form/library.js: 404 - Not Found.

I am working on SAP MII 14.0 SP4 and the version of IE is 9.

Any pointers will be helpful.

Regards,

Muddassar Khan

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 22, 2014 at 04:47 PM

    Hi Muddassar,

    As mentioned by Christian you could check the SAP UI5 version you are on to confirm if those libraries are part of it.

    For checking the version, you can press F12 which opens up browser console and type in the following:

    sap.ui.version

    Additionally can you share the exact code that you are trying.

    Does it throw js error at this line: var oLayout1 = new sap.ui.layout.form.ResponsiveLayout("L1");

    Regards,

    Ria

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 22, 2014 at 04:32 PM

    Just a guess but It might be that those libraries aren't present in the UI5 version you are on. Right now the UI5 api is pretty fluid and it seems like they are adding and moving stuff around pretty often.

    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.