Skip to Content

Data is not coming back from Odata service in UI5 application

Hi Experts,

I am trying to consume the odata service in my application, when i ran it i am getting the below error when i ran it locally and i am confused why it is calling "Webide Testing"

When i test the odata service in browser its working fine and the data is coming

Can someone help me to fix this issue ?

KR,

Anil

debug.png (355.7 kB)
service.png (141.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    Apr 18 at 07:51 AM

    There is a mistake in your code. please correct below part.

    "models": {
    			"i18n": {
    				"type": "sap.ui.model.resource.ResourceModel",
    				"settings": {
    					"bundleName": "table.table.i18n.i18n"
    				}
    			},
                         "": {
    				"dataSource": "ZBPE_MAINT_BPE_SRV",
    				"preload": true
    			}
    		}
    Add comment
    10|10000 characters needed characters exceeded

    • Hi Anil,

      According to your metadata file you need to pass two key values to get the data.

      try to run the odata separately and check the output.

      <PropertyRef Name="Kokrs"/>
      <PropertyRef Name="ZbpeBpe"/>
  • Apr 09 at 04:47 AM

    What are the errors in the Console tab of the developer console? Are you getting the errors when testing from Web IDE or testing the app locally? In case of local testing you will have to remove the destination reference in the OData service URL within the app descriptor file.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 10 at 05:59 AM

    Hi Experts,

    Any other inputs ?

    KR,

    Anil

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 10 at 09:23 AM

    Hi,

    Included destinations in neo-app.json file?

    Regards,

    Gururaj

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Ok..

      How are you defining model in manifesrt.json?

      >As you have given "path": "/ODP". But in metadata call the path is different.

      the "/ODP" should be prefixed to model path in manifest.json file.

      Regards,

      Gururaj

  • Apr 12 at 08:05 AM

    Hi Anil,

    For using other domain services in Web IDE, you need to create destination in SCP Cockpit.

    For this S4I, the neo-app.json should have:

    and data source path should be:

    Check if all these are correct.

    Regards,

    Suriya

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 12 at 10:35 AM

    Hi,

    Do you have a manifest.json file? what is the model destination maintained in your local version?

    Add comment
    10|10000 characters needed characters exceeded