Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Calling Write Stored procedure from xsodata with table/list as input

$
0
0

I have a stored procedure which takes table type as input and insert data in a table

---

PROCEDURE "C"."abcd.procedures::InsertResData" ( IN  resourcelist "abcd.procedures.ResourceT",out error "abcd.data:abcd.procedures.tt_error"  )

  LANGUAGE SQLSCRIPT

  SQL SECURITY INVOKER abc

  --DEFAULT SCHEMA <default_schema_name>

  AS

BEGIN

---some insert logic-

END

----

 

Now I have exposed the SP using XSODATA so that UI can consume it.

------

service namespace "abcd.hana.service"{

 

"abcd.views/Resourceview.attributeview" as "resourceitem"

key("RESOURCE_ID")

create using "abcd.procedures::InsertResData";

 

}

 

--

 

 

Question: How can I pass array of input records to XSODATA. from UI? Is it supported?

I could test with single record (JSON input) but could not test with multiple records

 

Please help me on this if you have some expert opinion

 

Regards,

Apoorv


Viewing all articles
Browse latest Browse all 6412

Trending Articles