cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Web IDE Full-Stack - SAPUI5 App and metadata problems

former_member603527
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member603527
Participant
0 Kudos

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.
0 Kudos

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.

Mock Server Example

Regards,

Kerem

0 Kudos

Hi Dmitry,

Did you define an oDataModel ? You should define a model and set your datasource to it. Please see the screenshot shot below.

former_member603527
Participant
0 Kudos

I have URI, but data Sourfce empty..

D.