title: In ExtJs, how do I get an id after syncing a record to the store?
body: <p><strong>If I have a store under ExtJs 4, how do I get an id from a newly added record after a sync occurs?</strong></p>
  
  <p>For example, if I have a <code>PersonStore</code> set to autosync and I add a new person based on a form filled out by the users, I can add the new record to the store by doing the following;</p>
  
  <pre><code>var values = button.up('form').getForm().getValues(),
      store = Ext.StoreMgr.lookup('PersonStore'),
      result;
  
  result = store.add(values);
  </code></pre>
  
  <p>Since autosync is set to true, this sends over the new value to the backend where it is assigned an id. The backend then responds to the client with the id of the newly created record. </p>
  
  <p><strong>How do I get the id for this newly created record in my client side code?</strong> I had assumed that result would contain it, but result still has id set to null.</p>