on 07-02-2013 6:56 AM
Hi all,
I am trying to create a simple button with alert on hana studio using sap UI5 project. I did all the procedures as mentioned. When i run it on the XS Engine it displays an empty page. But the same thing works perfectly on the demo video. I checked the error through developer tool its says that "sap is not defined". I am clear that my code was not able to access the UI5 library package. In the script i included the same path as they mentioned src="resources/sap-ui-core.js". But i dont know why this error occurs. Whether i have to configure anything or the path mentioned is wrong???
Hi Praveen/Thomas,
I am not able to access UI5 application from server. I can see my application on server repository. My index page is correctly pointing to "/sap/ui5/1/resources/sap-ui-core.js". I have tried opening http://<server>:8000/sap/ui5/1/resources/sap-ui-core.js and it gives me pop up to download the script. That means my index file shoud be correct. I have created a simple application with one button and shared it on server. I am trying to access the application with below link:
http://<server>.com:8000/hanauitest/WebContent/index.html
"hanauitest" is my package on the server.
Can you please help me out here?
Thanks
Pranav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas,
Thanks for reply. I followed your video on you tube. Here is what i did:
1. Right click on development are and created one UI5 project
2. Changed the index.html file
3. Added some line of code for button in view
Shared it on repository and activated the project. This was my first project on studio. I dont have .xsapp file in package. I am sure i have missed some thing.
Here is the error that i m getting :
Thanks
Pranav
Hi Pranav,
In each and every project before you develop your code you have to provide two files as Thomas mentioned in his video. Those files are
.xsapp file defines the root folder of your project. Just create a file ".xsapp" like this and you dont need to provide anything inside this file.
Second thing you have to create a ".xsaccess" file. This defines the authentication method of your project. Inside the file provide the following code.
{
"exposed":true,
"authentication":[{"method":"Basic"}]
}
If you provide both these files then link broken error will not appear.
User | Count |
---|---|
68 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.