title: ExtJs - How to get value from the Store by id?
body: <p>How to get value from the Store by <em>id</em>?</p>
  
  <p>store in such fields</p>
  
  <pre><code>    fields: [
      {name: "id", type: 'int'},
      {name: "name", type: 'String'},...
  </code></pre>
  
  <p>I need to get the <em>id</em> - <em>name</em> value.</p>
  
  <p>I try so:</p>
  
  <pre><code>    var rec = Ext.StoreMgr.lookup("MyStore").getById(id);
      alert(rec.data.name);
  </code></pre>
  
  <p>what am I doing wrong?</p>