Hi experts ,
I am using xsodata to consume HANA calculation view (which has 2 input parameters) .
Now when i am trying to writeback using create statement i am not understanding ho to do this .
The same scenario i have acheived through attribute view but struggling when it comes to calculation view(with input parameter)
For attribute view i have used the following codes and is working perfectly fine
Controller
sap.ui.getCore().getModel( "modelName").create("/Path", writebackModel.oData, null,
function() {
sap.m.MessageToast.show("Saved")
},
function() {
sap.m.MessageToast.show("Failed")
})
xsodata
"Attribute_view_path::AT_NAME" as "ATV" keys("ID")
create using "PROCEDURE_PATH::PROCEDURE_NAME";
Procedure
Basic CRUD operations
- Now i am replacing at_view with calc_view so what should be the
path format ? - Any change in xsodata format ??
- If i simply use the path without the mandatory input parameters it throwing error that the parameters are required (understandable) . . so how do provide them ...if i am putting it in the format /ABCParameters('123')/Results it throwing "post operation must point to an entity set" . .any solution ??