on 11-23-2016 10:04 AM
Hello.
I need to create records in oDataModel and display them in SmartTable. After user press "Save" I need to SubmitChages or DeleteCreatedEntries.
When I try to add new entry to model (oModel.CreateEntry) it is not displayed in table (but exists in model with temporary key). I've tried to refresh binding ( SmartTable.getTable().getBinding("rows").refresh() ) but without success.
Could somebody advice how to add several rows to smarttable without posting to backend\server?
I use oDataModel V2 with TwoWay Binding.
Hi Mikhail,
You need to copy your data into a JSON model and bind that to your table.
See here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, Tom!
Thanks for you advise! The solution with JSON Model is easy to implement and support. My final solution uses JSON model to display records in the table, but CRUD operations get executed with ODataModel.
Now I'm able to add row to SmartTable(overview table) and display SmartForm(Details) with selected Entry\Entity. SmartForm context has binding to oDataModel and on context change it will update oDataModel and then JSON model.
Michael.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.