on 09-03-2014 3:48 PM
HI all,
I am new to SAP FIORI, trying to setup a FIORI project with Mock server this is working fine but results are not displaying in view.
for mock server/data setup I have followed the link http://www.spyvee.com/saphtml5/docs/guide/MockData.html . For Project setup used below ODATA service. http://services.odata.org/Northwind/Northwind.svc/$metadata
Copy and paste the metadata.xml file and Product.json file in model folder inside WebContent folder as suggested by above link.
while running the project in any browser I am getting below error
The mockdata for entity type "Product" could not be found at "./model/"! -
sap-ui-core.js:80u sap-ui-core.js:80error sap-ui-core.js:80(anonymous function) MockServer.js:6Q.extend.each sap-ui-core.js:16c._loadMockdata MockServer.js:6c._refreshData MockServer.js:6c.simulate MockServer.js:6sap.ui.core.UIComponent.extend.init Component.js:85E.extend.constructor sap-ui-core.js:134M.extend.constructor sap-ui-core.js:134C.extend.constructor UIComponent.js:6M.createClass.f sap-ui-core.js:122sap.ui.component sap-ui-core.js:134sap.ui.core.ComponentContainer.onBeforeRendering ComponentContainer.js:6a._callEventHandles sap-ui-core.js:134a._handleEvent sap-ui-core.js:134R.renderControl sap-ui-core.js:134R.render sap-ui-core.js:134U.rerender sap-ui-core.js:134k._rerenderAllUIAreas sap-ui-core.js:134k.init sap-ui-core.js:134k.handleLoad sap-ui-core.js:134(anonymous function) sap-ui-core.js:134l sap-ui-core.js:80finishTask sap-ui-core.js:80(anonymous function) sap-ui-core.js:134Q.Callbacks.r sap-ui-core.js:27Q.Callbacks.t.fireWith sap-ui-core.js:27Q.extend.ready sap-ui-core.js:16U
Can any one help to solve this issue.
Thanks in advance.
Tags edited by: Michael Appleby
Hi, the error you see in the browser console is because the MockServer looks for Product.json file in the model folder. If you don't have a Product.json file in the model folder then ignore the error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.