I am creating a To-Do List App in SAPUI5 and have connected my OData V4 Model from a CAP Project. The issue I have is that I cannot update my Object status to "done" when it is selected. I looked up several documentations and posts on Stackoverflow, yet I cannot find a easy solution to update a OData V4 Model. Here is my function and a create function as well to add entries to my current list:
The error I currently receive is: Uncaught Error: The binding must be deferred: Books(6) Update entity data using OData V4 and oListData The only solution I could think of was deleting and creating an identical model, but I want to refrain from doing this, due to it changing the sequence of my List entries.. Does anybody know an easier way to simply update my Object to change the status to "Done" ?
I tried to use this previous stackoverflow answer but it doesnt work Update entity data using OData V4 and oListData