Skip to Content
avatar image
Former Member

Cannot read property 'startupParameters' of undefined - SAPUI5

Hi All,

while executing extended My Leave Request application in WebIDE, I am facing the issue "UIComponent.js:6 Uncaught TypeError: Cannot read property 'startupParameters' of undefined".

Below is the screensnap for your refernce.

Kindly assist me, Thanks in Advance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Apr 01, 2016 at 06:10 AM

    Hi padma,

    to me it looks like the path to sap core libary is broken.

    Please check it.

    I had similar problems and here are some solutions:

    • Use of static ID: try it with an ID build by sapui5 (this.createId(<yourID>))
      >> This problem occurs for me when I use XML Views.
    • Used Libary not loaded: make sure you load the required libary with jQuery.sap.require(<classname>.js)
    • Meta tag inside index.html broken: I deleted "charset="utf-8"" inside index file and your error occured. I have no idea about its origin.

    I hope, this helps.

    Regards,

    Daniel

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 06, 2016 at 08:13 AM

    Please share your index.html and Component.js

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 06, 2016 at 09:59 AM

    Hi Michal,

    kindly find the below screen shot for your reference.

    index.html

    component.js


    21.png (34.0 kB)
    22.png (37.2 kB)
    Add comment
    10|10000 characters needed characters exceeded