Skip to Content
avatar image
Former Member

How to create hybrid SAPUI5 application without HANA, WebIDe or HAT?

Hi There,

I am trying to create SAPUI5 hybrid app using local Cordova Setup. I have successfully created the app but now I am facing problem to expose the odata to native container. I have done search in SCN before asking this question but unfortunately I haven't got anything.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jul 25, 2016 at 07:06 AM

    Are you getting any error..?

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Vishal,

      You are probably experiencing cross domain issues for a local Cordova build. I would suggest adding the following script to your index.html file and see if you can then access the OData service:

      <script>
           $( document ).on( "mobileinit", function() {
                $.support.cors = true;
                $.mobile.allowCrossDomainPages = true;
           });
      

      Regards,

      Ryan Crosby