on 2016 May 19 3:21 PM
Hello every one am kind of new to SAP UI5... Am trying to fire up a simple FIORI apps using the trial box provided by SAP and am getting an error. I will attach a screen shot. I first thought it was from my ODATA setup, until i tried building a local app without using ODATA, used a test data and am still getting an error.
After a further query(F12) in the browser, I got the Error.
https://webidetesting8270366-p1941154940trial.dispatcher.hanatrial.ondemand.com/webapp/resources/sap... Failed to load resource: the server responded with a status of 404 (Not Found)send @ sap-ui-core.js:71
2https://webidetesting8270366-p1941154940trial.dispatcher.hanatrial.ondemand.com/webapp/resources/sap... Failed to load resource: the server responded with a status of 404 (Not Found)send @ sap-ui-core.js:71sap-ui-core.js:88 2016-05-11 09:42:12.216294 registerResourcePath ('salesorg01/com', '../') - sap.ui.ModuleSystem2https://webidetesting8270366-p1941154940trial.dispatcher.hanatrial.ondemand.com/webapp/resources/sap... Failed to load resource: the server responded with a status of 404 (Not Found)send @ sap-ui-core.js:71sap-ui-core.js:88 2016-05-11 09:42:12.721084 registerResourcePath ('salesorg01/com', '../') - sap.ui.ModuleSystem2https://webidetesting8270366-p1941154940trial.dispatcher.hanatrial.ondemand.com/webapp/resources/sap... Failed to load resource: the server responded with a status of 404 (Not Found)send @ sap-ui-core.js:71https://webidetesting8270366-p1941154940trial.dispatcher.hanatrial.ondemand.com/here/goes/your/servi... Failed to load resource: the server responded with a status of 404 (Not Found).
Also here is my code for the Index.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Products</title>
<!-- Bootstrapping UI5 -->
<script id="sap-ui-bootstrap"
src="resources/sap-ui-core.js"
data-sap-ui-libs="sap.m"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-compatVersion="edge"
data-sap-ui-resourceroots='{"products.com": "./"}'
data-sap-ui-frameOptions="trusted">
</script>
<script>
sap.ui.getCore().attachInit(function () {
sap.ui.require([
"sap/m/Shell",
"sap/ui/core/ComponentContainer"
], function (Shell, ComponentContainer) {
// initialize the UI component
new Shell({
app: new ComponentContainer({
height : "100%",
name : "products.com"
})
}).placeAt("content");
});
});
</script>
</head>
<!-- UI Content -->
<body class="sapUiBody" id="content">
</body>
</html>
Request clarification before answering.
Looks like it has something to do with your binding of the list, which shows categories as the title. I would guess you are using the service.odata.org service and trying to show the product categories? The problem with this is there is only one category per product so the service does not support the skip and top functions.
You could either remove the list or switch to http://services.odata.org/V2/Northwind/Northwind.svc and show Customers in the master list and orders in the details list.
Regards,
Jamie
SAP - Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
God bless you...
Its working now, am not encountering the error again...
The data I want is kind of different dho.. I will have to understand the whole Odata very well.
Thank you.
WIll also like to get your email address..if you dont mind so we can exchange views more .. Am a fresh Abaper working on an SAP project in Nigeria.
User | Count |
---|---|
81 | |
30 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.