Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Steps to perform Create and Update operations using oData

$
0
0

Hi,

 

I have developed a project in HANA Studio for using oData services in SAP UI5 for performing read, insert and update operations. TThis is a pretty basic application to understand how to use oData service for CRUD operations. The read operation is working fine. I am facing challenges with insert(with oModel.create) and update. Can someone please explain the steps to be followed and the correct methods to be used to perform these operations?

 

I am able to perform the CRUD operations using my oData service on the POSTMAN app by setting "content-type" as "application/json".

 

How do I set content-type in my application(incase I need to do that explicitly) and in which file? I believe that the major files involved in the development are: XXX.xsodata, XXX.view.js, XXX.controller.js and index.html.

 

Regards,

Sunny


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>