Features implemented both for OData V4 and OData V2 models in UI5:
* Inline creation rows: Allow for a quick creation of new entries within a table without separate forms or popups.
* Deep create: Allows to create one or more subentities for a navigation property of a newly created parent entity with a single OData request.
3. 3
Feature offered with identical APIs both for OData V4 and V2
Use case: Quick creation of entries in a table without separate “create button”
APIs
–Create new entry via ODataListBinding#create with “inactive“ parameter
▫ Inactive context Not sent to server before first property update
▫ Use case “required properties for creation”:
App can cancel activation via createActivate event handler
–Get context status via Context#isTransient and Context#isInactive
Demo: Creation of sales orders and line items on RAP OData V2 service
▫ Feature demo
▫ Code demo with debugger
Docu on create: OData V4 and OData V2
Inline creation rows
4. 4
Feature offered with identical APIs both for OData V4 and V2
Use case: SAP backend interfaces for document creation typically offer deep
create
–Document and its line items is created with one service request
–Example: Sales order and sales order line items
Deep create triggered by ODataListBinding#create for a list binding with a
transient parent context
–One POST request to create document and line items within payload
–Bindings are updated from deep response
Deep create