javascript - SAPUI5 Deep Insert from Kapsel Offline App on OData V2 Model -


question:

how can "deep insert" performed sapui5 client application on odata v2 model?

situation:

i want deep insert "operation" "components" odata v2 model in sapui5 client application.

 // request data  "operationset" : {                    "orderid" : "13700090",                  "operationcomponentset" : [               {                                 "orderid" : "13700090",                 "activity" : "0010",                 "subactivity" : "",                 "componentitem" : "000010"                                }             ] }  this.getview().getmodel().create("/operationset", requestdata); 

i cannot use function create(spath, odata, mparameters?) on odata v2 model documentation says: "please note deep creates not supported , may not work." see https://sapui5.netweaver.ondemand.com/sdk/docs/api/symbols/sap.ui.model.odata.v2.odatamodel.html#create

is there other possibility perform deep insert on odata v2 model?

links:

the answer is, "deep insert" doesn't support 0..n assoziations offline kapsel plugin @ moment.

see http://help.sap.com/saphelp_smp308sdk/helpdata/en/d3/0ded03756247f1a136c84be7901879/content.htm

limitations of deep inserts deep insert odata post request create entity contains inlined definitions of related entities.

when deep insert processed, top-level entity , of related entities created , linked single operation. in sdk sp07, offline store supports deep inserts through odata api on android, ios , winphone 8 platforms 1 important restriction:

  • the navigation property used deep insert must refer @ 1 entity. inlined related entities must added using navigation property torole refers association end cardinality 0..1 or 1. cannot added using navigation property torole refers association end cardinality *. navigation properties refer set of entities cannot used deep inserts.

so "deep insert" work if request executed online against gateway @ moment.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -