on 11-06-2013 12:01 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sangamesh,
Your screenshot is not visible.
Could be please attach it again.
Regards
Prabhith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.