dtornow
30 Jun 2012, 9:51 AM
Hello,
I am trying to figure out how to create dependent models: Lets assume I have one model Book and one model Chapter, also two stores, two girds. Chapter has one field book_id to implement the association. The communication with the server is Ext Direct.
Everything works just fine, except if the Book and the Chapter are phantoms. IMHO the desired flow would be: sync the book store, update every Book with the server generated id, update every Chapter's book_id with the associated Book's id, sync the chapter store.
I cannot figure out any smart way of doing it. What is the Ext way of doing it?!
Thanks for your help!
I am trying to figure out how to create dependent models: Lets assume I have one model Book and one model Chapter, also two stores, two girds. Chapter has one field book_id to implement the association. The communication with the server is Ext Direct.
Everything works just fine, except if the Book and the Chapter are phantoms. IMHO the desired flow would be: sync the book store, update every Book with the server generated id, update every Chapter's book_id with the associated Book's id, sync the chapter store.
I cannot figure out any smart way of doing it. What is the Ext way of doing it?!
Thanks for your help!