cancel
Showing results for 
Search instead for 
Did you mean: 

How to Read/Binding Model of .XSODATA

shahid
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi All,

I have defined a data model for .xsodata service



var oModel = new sap.ui.model.odata.ODataModel("../../../services/order.xsodata/", false);



 



var val1 = new sap.ui.commons.TextField({value: "{Value}"});

1. How to read the model and assign it to val1 - with this oModel.read("/OrderIde('10000000')",  .....

The model works fine when it is binding to a table like oTable.bindrows("/OrderIde");

2. I am not sure how to bind to a layout, for table it works fine as we have an option of .bindrows.

Any Alternatives/Suggestions?

Accepted Solutions (0)

Answers (1)

Answers (1)

shahid
Product and Topic Expert
Product and Topic Expert
0 Kudos

In SP6, we can insert the data into the table. I am able to insert the data from POSTMAN following Tutorials shared by Thomas.

If I use the URL then it also successfully retreives the data

Http://...../amohas97/session/services/InsertOrderId.xsodata/InsertOrderIde('1000000001')

Questions is.. how to insert the data? I mean how should be the URL for XSODATA to create a record in the table.

I want to call this in SAP UI5 application so that i can create a record in the table using xsodata.

Message was edited by: Shahid Mohammed Syed