cancel
Showing results for 
Search instead for 
Did you mean: 

Getting blank page when I access UI5 Application

Former Member
0 Kudos

Hi,

I have deployed UI5 application in sap HANA cloud, when I try to access the UI5 application I'm getting blank page.

Regards,

Sham

Accepted Solutions (1)

Accepted Solutions (1)

GregTutt
Explorer
0 Kudos

Hey mate,

May be you can check the file neo-app.json it should contain a redirection to the correct index file.

It shoud look like:

{

  "welcomeFile": "[yourapp]/WebContent/index.html",

  "sendWelcomeFileRedirect": "true"

}

Former Member
0 Kudos

Hi Gregory,

I have added your code but still I'm getting same error.

Thanks and Regards,

Sham

GregTutt
Explorer
0 Kudos

Hey mate,

From your console error, it seems it doesnt find the SAPUI5 libraries.

Just for test purpose, can you add the following in the head of your webpage ?

<script src="https://openui5.hana.ondemand.com/1.30.8/resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-libs="sap.m, sap.ui.unified" data-sap-ui-theme="sap_bluecrystal"></script>

This would load the library directly from HCP. If it works, then we can probably find a fix in the neo-app.json

Cheers

Greg

Answers (1)

Answers (1)

former_member185671
Participant
0 Kudos

Hi shamsundarsing,

Could you please use the console of the browser to show what error do you get?

Best,

Christoforos


Former Member
0 Kudos

Hi Christoforos,

Controller file is not loading into the browser.

Thanks and regards,

Sham

former_member185671
Participant
0 Kudos

So at first, the sap variable is not defined, right?

Next, there could be many reasons why you are getting an 404 error.

A simple one, might be that you are referring to something that doesn't exist - for example:

You created a javascript file with the name test123.js, and you are referring to test1233.js

Best,

Christoforos

Former Member
0 Kudos

I have defined sap variable,


And I'm refering the proper xyz.js file only But still the same error

Thanks and Regards,

Sham

former_member185671
Participant
0 Kudos

Hi,

As far as I can see, the url says:

https://sapuiclod - I think it should say sapcloud, right?

(I am not the SAPUI5 guy you are looking for, so just wait for someone else to reply to you)

Best,

Christoforos

Former Member
0 Kudos

Hi,

Should i have to add any destinations in sap hana cloud.

Thanks and Regards,

Sham