cancel
Showing results for 
Search instead for 
Did you mean: 

Using odata with precedure to create row for table

former_member189009
Active Participant
0 Kudos

Dear friends,

       I create an odata like this : I want to create row in my table though this procedure.

service namespace "CREATE_HEADER"

{"BOOK"."ZSOHEADER" as "Header"

  create using "Kevin_Demo.UI5_DEMO1.procedures::HeaderCreate";

  }

       My data is form my ui input text field, the controller code :

        But when it run to create, it have the error message:   

        <message xml:lang="en-US">Error processing request stream. JSON text specified is not valid.</message></error>

        So does anyone have come across some situation like this ?   Thanks for your sincerely answer.

Best Regards,

Zhang.

Accepted Solutions (1)

Accepted Solutions (1)

santhu_gowdaz
Active Contributor
0 Kudos

Why model.create again use push method to add,

see these examples-

JS Bin - Collaborative JavaScript Debugging

JS Bin - Collaborative JavaScript Debugging

former_member189009
Active Participant
0 Kudos

Hi Santhosh,

    Thanks for your help. But I want to create data in my database table though odata, not just display in html. so do you have any other way to do this ?  Thanks again.

Answers (1)

Answers (1)

NagaPrakashT
Contributor
0 Kudos

Hi Zongjie,

Can you please check this thread and see if this helps you.

Thanks,

Naga