[Q] how to assign a new Id value to JsonRestStore from the server on Insert

View: New views
1 Messages — Rating Filter:   Alert me  

[Q] how to assign a new Id value to JsonRestStore from the server on Insert

by V S P :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When adding a new item to
dojox.data.JsonRestStore

I use   store.newValue

and the store.save()

that in turn causes a the new data to be sent to my server

The server now needs to perform an insert into the database,
and if it sees that an identity field is 0 (or null or negative)
it will assign a new ID to it.

My question is of course, how do 'propagate' this new ID back
to the store ?


thank you
--
Vlad P
author of C++  ORM  http://github.com/vladp/CppOrm/tree/master


--
http://www.fastmail.fm - Send your email first class

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest