hi
i am developing a master-detail app that uses an odata model - the master list and the details display are bounf to the odata model.
i need to give the user the ability to edit the details data.
my thinking is that i need to have an edit view (form) that is bound to a json model so that i can use two way binding and use the json model for saving the changes.
so, the process goes something like this:
- user selects item from master list
- selected item is displayed in details view (bound to odata model)
- user clicks on Edit button
- a new view bound to json model is displayed so that user can edit.
- user makes changes, clicks on Save and the json model is used in the save action
any thoughts or suggestions about this approach appreciated.
also, assuming this process is ok, what is the best way to copy the data in the display detail view (which is bound to the odata model) to the edit detail view (which is bound to a json model)? my current thinking is that because i know which element was selected (i have the id of the selected item) i can use that id to do a read on the odata service and then use the returned object (which should contain the data of the selected item?) as the data for the edit detail json model.
i hope this makes sense.
cheers pas.