lundi 5 janvier 2015

Treestore and generate a new item id on server

When add a new tree item to a treestore and sync it. When this new item is posted to server it will recieve a new id. But that seems to be a problem!?

"Cannot read property 'getAttribute' of null"

Post Json-data to the server



Code:



[{"text":"My new item","leaf":true,"id":"DSA.model.TreeItem-38","checked":false,"parentId":"Fav22"}]



Response with updated id


Code:



[{"text":"My new item","leaf":true,"id":"Fav23","checked":false,"parentId":"Fav22"}]

Any tips on how to sove this problem



Treestore and generate a new item id on server

Aucun commentaire:

Enregistrer un commentaire