Hi,
I have a data model for an everlive datasource, and I've added some extra fields that help manage some functions around what is displayed in a ListView. However I don't want the extra field saved back to the dataSource when it is synced.
I've sketched what I thought might work below. Am I on the right track? And/or what sort of code would I need to ensure the showAnimalDetails is not saved?
Many thanks
-Paul
In the following, the animalName is from the dataSource and the showAnimalDetails is an extra field.
01.var animalModel = {02. id: 'Id',03. fields: {04. animalName: {05. field: 'animalName'06. },07. showAnimalDetails: {08. defaultValue: false09. }10. ...
That all works fine. However, I don't want to include the showAnimalDetails field when I sync the dataSource back via Everlive.
I thought the way to do it would be like this ...
01.var animalsDataSource = new kendo.data.DataSource({02. type: 'everlive',03. schema: {04. model: animalModel05. },06. transport: {07. typeName: 'Animals', 08. update: function(options) {09. // Put code here to remove extra field before sync?10. }11. }12.});