Login Register

deleteItem

deleteItem on ItemFileWriteStore dosent work

We used

var fruitStore=new dojo.data.ItemFileWriteStore(data);
to create a store from a json tree data.

Later we deleted one item using...
fruitStore.deleteItem(item);

When we wanted to insert the item again at a different tree node , I get a data store exception.

--- > Error: newItem() was not passed an single-valued identity'

Dosen't the delete remove the object from the tree and the datastore ???

And also when we use

items = fruitStore.getValues(parentItem,"children"); ,

Syndicate content