cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ODataListBinding#create OData V2 - Alternative cause of SAP UI5 Version

Chris_2311
Participant
0 Likes
372

Hi all,

i'm relative new in the whole UI5/FIORI world and in one of my first apps (ODATA V2 Model, Two Way Binding) i have the following scenario:

- One Entity for my Header Data within a few Smart fields
- One Entity for my Item Data within a table

For the header data i use the ODataModel#createEntry to create a new "empty" Model for my Sales Order Header Data. This works fine.
For the Item Data (table) i want to use the ODataListBinding#create to create a new "empty" row in my table to insert the Sales Order Item Data. This row shouldn't processed immediately from the backend. I only want to have it in my UI and it should be transfered and processed to the backend only after pressing button "Save Sales Order". I think this should work via the SubmitChange function.

My problem now is the following: 
We are running on UI5 Version 1.71.58 and i think i can't use the ODataListBinding#create function there.
Am i right?
If yes, what else can i do for my requirement?
I need the ODATA V2 Two Way Binding and something like "Convert to JSON Model and vice versa" isn't an option cause i need some smart fields (via Annotations) in my item table.

I hope anyone of you cracks can help me 🙂

Best Regards
Chris

Accepted Solutions (0)

Answers (0)