on 03-13-2019 12:45 PM
Hello everyone,
I`m newbie in SAPUI5. I created SAPUI5 app and connect oData service with https://sapes5.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/ProductSet After i created ComboBox, where should to be collected and displayed all products in that list, but its empty. Wrote "No data". Maybe my connection is bad..
App.view.xml
<ComboBox id="categories" items="{ path: '/ProductSet'}">
<core:Item key="{ProductID}" text="{Name}"/>
</ComboBox>
manifest.json
"dataSources": {
"GWSAMPLE_BASIC": {
"uri": "/GWoDataConnectivityOpenSap2/sap/opu/odata/iwbep/GWSAMPLE_BASIC/",
"type": "OData",
"settings": {
"localUri": "localService/metadata.xml"
}
}
Masters, need your help..
Best Regards,
D.
I notify,
When i create Destination or new oData Service with URL - https://sapes5.sapdevcenter.com:443/sap/opu/odata - all works fine, but "No Data".
But when i try to create with URL - https://sapes5.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/ProductSet
or
https://sapes5.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC that i have response ("{NameOfoDataService} Catalog service is unavailable. Please try again.")..Maybe this information will help you to help me :)Best Regards, D.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I looked at the remote service. It doesn't return any data. If you want to use mock data you should implement a mock server. Either way i wrote a working example for you. If you want to run it with mock server you should run the "mockserver.html" file in the test folder or to use remote service; run "index.html" file. See the github link below.
Regards,
Kerem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.