cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot read property 'startupParameters' of undefined - SAPUI5

padma_mundru
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Michal,

kindly find the below screen shot for your reference.

index.html

component.js

michal_keidar
Active Contributor
0 Kudos

How are you executing this extension project? What do you choose in the menu and which file do you select?

I think like Daniel: the path to sap core libary is broken

padma_mundru
Participant
0 Kudos

Hi Michal,

I selected the index.html file in extension project and run that file.

and I found that sap core library is loading fine.

How can I rectify above issue? Could you please assist me.

Thanks in Advance.

Regards

Padma

michal_keidar
Active Contributor
0 Kudos

Try to run the application by selecting its Component.js and choose to run it in FLP Sanbox

padma_mundru
Participant
0 Kudos

Hi Michal,

Thanks for your reply.

When I run with Component.js file it is working fine, whenever it will open the extensibility pane mode  I didn't get any view it is showing blank screen.

Below is the screen snap for your reference

Kindly help me

Regards

Padma

michal_keidar
Active Contributor
0 Kudos

I understand, because the Extensibility Pane is executing the index.html and not the Component.js.

Can you please attach your entire extension project?

Former Member
0 Kudos

Hi Michal,

As per your suggestion I was tried to execute the My Leave Request standard fiori app in Local WEB_IDE based on componet.js  file, got an errors. Find the below highlighted error's what i was facing during run time. Kindly find the below screen snap for you reference.

@Thanks in advance

Regards,

Sirisha

michal_keidar
Active Contributor
0 Kudos

Hi,

It looks like a connectivity problem with your Gateway. Can you attach how this is configured?

Former Member
0 Kudos

Hi Michal,

I created extension project by using below steps.

File-->New--> Extension Project-->Remote-->SAPUI5 ABAP Repository-->

Original App : HCM_LRQ_CRE

Extension Project Location: HCM_LRQ_CREExtension.

After creating extension project, i selected component.js file from project structure and run.

Thanks & Regards,

Shirisha

Former Member
0 Kudos

I am facing same problem while extending HCM_LRQ_CRE application.

michal_keidar
Active Contributor
0 Kudos

HI,

I meant if you can attach your destination file, to see how's it's configured.

The 500 error suggests that Web IDE can't reach the backend.

Thanks,
Michal.

michal_keidar
Active Contributor
0 Kudos

Other applications are working for you?

michal_keidar
Active Contributor
0 Kudos

Please share your index.html and Component.js

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Daniel,

I am also  facing same issue.I didn't get any idea regarding first option(Use of static ID). Can you please elaborate bit more.

Regards

Sirisha

Former Member
0 Kudos

Hi sirisha,

it would be nice if you provide some code. And maybe you should start a new question.

This would make it easier for other people to find a solution.

Regards,

Daniel

padma_mundru
Participant
0 Kudos

Hi Daniel,

Thank you for reply,

But I am still facing the same issue.


Is there any other way to resolve this issue?


Could you please assist me.

Former Member
0 Kudos

debug the code..set a break point in chrome