cancel
Showing results for 
Search instead for 
Did you mean: 

sap-ui-core.js source?

Former Member
0 Kudos

Hello,

I am trying to execute a HelloWorld application using SAPUI5.

I do not understand this part where I get the path of "sap-ui-core.js" as highlighted in the picture.

And also could any1 tell me what is the significance of this?

As per my underatnding from the tutorial on HANA, it indicates what kind of system we are connecting to for example : HANA, ABAP...

Thanks

Sangamesh

Accepted Solutions (1)

Accepted Solutions (1)

pfefferf
Active Contributor

Hi Sanagmesh,

the resource settings only describes where the UI5 JS lib is available. Using a relative path (as in your screenshot) is possible if the lib is available on the same server than your UI5 app (e.g. on a HANA XS, NW).

You can also include the lib with following absolute path from SAPs ondemand site:

"https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"

Regards, Florian

Former Member
0 Kudos

Hello FLorian,

Thanks. Seems like I am half way there to solution.

Now I have a problem.

I am using Cloudshare 30 day free trial.

I made the following changes after your suggestion:

My "Helloworld view" as follows:

My repository view:

Now, I save and activate everything. All works fine.

I switch to browser to see the button "Hello World" with action "fadeout" and I give the link:

Result : When I send request, the browser loads for sometime(15 seconds) and gives back an empty page. Whats the reason for this? Do you find any missing statement or value in the code??

Is the link that I have typed in the browser is correct?

Your suggestion would be appreciated.

Thanks

Sangamesh

pfefferf
Active Contributor
0 Kudos

Hi Sanagamesh,

your XS Engine is up and running (check with hanacloud:8000)?

On an HANA system you can use the path "/sap/ui5/1/resources/sap-ui-core.js" to include the lib.

You can also can check if the UI development kit page comes up (hanacloud:8000/sap/ui5/1/sdk/#content/Overview.html).

Regards, Florian

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Sangamesh,

SAPUI5 is implemented in JavaScript. For loading UI5, its bootstrap needs to be included with a <script> tag.


sap.ui.core:

In addition to basic framework classes such as Control and Element, the library also provides some controls such as HTML for embedding native HTML as well as the model and data binding classes.

https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js

it will initiates the different libraries related to the SAPUI5.

Regards,

Prasad Sistla.

Former Member
0 Kudos

Could you please suggest a solution for the above problem?

Thanks and Regards

Sangamesh

Prabhith
Active Contributor
0 Kudos

Hi Sangamesh,

Your screenshot is not visible.

Could be please attach it again.

Regards

Prabhith

Former Member
0 Kudos

Oops sorry did not notice!! Thanks Prabhith

Here it is!