Skip to Content
avatar image
Former Member

How to add entity with generate key in ODATA ?

I have my HANA SQL table

CREATE COLUMN TABLE "Model.Param"
(
MODEL_ID INT,
NAME NVARCHAR(60),
INTARGS INT ,
DOUBLEARGS DOUBLE,
STRINGARGS NVARCHAR(100)
);

and xsodata code

service  { 
	"TITANIC"."Model.Param" key generate local "GenID";
}

and URL is https://<serverpath>/list.xsodata/Model.Param/

I can use GET method to read full table. However , when I try POST method to create an entity, it always returns 'Feature not supported.' no matter what my JSON format body is.

How to insert a record using this OData service ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers