Skip to Content
avatar image
Former Member

Error in using OData when running Fiori app

Greetings Masters! I'm trying to read data when running my app. The custom table is in gateway and I've already set up my OData.

The problem is, I keep on getting these errors.

Here is my code in calling the OData in my controller.

I've already tried replacing 'http://' with 'proxy/http/' and adding '--allow-running-insecure-content' in my browser but still failed.

web-ide.jpg (287.0 kB)
code.jpg (53.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 14, 2017 at 12:53 AM

    Hello ,

    This is because your application is running from the WebIde and data is from abap backend leading to cross origin error. The way to prefix /proxy would work in the eclipse because ui5 default ships a proxy servlet.

    1. In WebIDE you need to setup Hana cloud connector to connect to Abap Backend.
    2. You need to maintain the destination in the HCP.
    3. Maintain this destination in the neo-app.json file in your project
    4. Finally prefix the url with the destination name .

    With this your issue will be solved. This blog gives you detailed steps Hana cloud connector

    Thanks and Regards,

    Veera

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 14, 2017 at 06:59 AM

    i was able to solve the issue by appyling the OData path in neo-app.json and manifest.json files

    Add comment
    10|10000 characters needed characters exceeded