erikras
31 Aug 2011, 11:00 AM
I'm creating a record and adding it to my store. But the record value returned from Store.add() and the record passed to the store's "add" listener still don't have their id set, and are still marked as phantom. The "add" listener must not be waiting for the result from the server to be parsed.
I need the id of the record I just created immediately after I create it to perform another operation. Is there a listener for when the record gets updated with the autogenerated values from the database and phantom gets set to false?
Please don't tell me I have to listen to all ajax calls and figure out which one is being sent from the store!
I need the id of the record I just created immediately after I create it to perform another operation. Is there a listener for when the record gets updated with the autogenerated values from the database and phantom gets set to false?
Please don't tell me I have to listen to all ajax calls and figure out which one is being sent from the store!