on 2018 Mar 30 2:53 PM
Hi,
how do I create a new entity with oData V4 model without having an existing ListBinding?
I have a SimpleForm and want to create a new entity based upon the entered information.
So I tried to manually create a ListBinding as this seems to be the only way to create a new enitty via create() method.
var oListBinding = oModel.bindList("/Templates");
var oContext = oListBinding
.create({"id":"1"});
But nothing is being sent to the backend.
What am I doing wrong?
All examples I have found base upon a control being bound and used a syntax like this
var oListBinding = this.getView().byId("mainmenulist").getBinding("items");
var oContext = oListBinding
.create(oMainMenuItem);
Thanks
Request clarification before answering.
Hello Oliver,
could you explain to me how to create an entity with oData v4? If its possible without Listbinding, because i dont have a list. I use two input fields to create a new entity.
Thank you very much!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have this answer already? I have the similar issue if you can share your solution. Thanks
User | Count |
---|---|
88 | |
10 | |
9 | |
8 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.