title: Specify 'label' and 'value' attribute for dijit.form.Select
body: <p>I was using <code>dijit.form.ComboBox</code>, but the requirement has changed, and now <code>dijit.form.Select</code> is more appropriate.</p>
  
  <p>However, after changing the widget type I get an error:</p>
  
  <blockquote>
    <p>TypeError: _b6d.getLabel is not a function</p>
  </blockquote>
  
  <p>From the documentation <a href="http://dojotoolkit.org/reference-guide/1.10/dijit/form/Select.html" rel="nofollow">http://dojotoolkit.org/reference-guide/1.10/dijit/form/Select.html</a> I see that <code>dijit.form.Select</code> expect fields <code>id</code> and <code>label</code> in the Store, while my Store has <code>id</code> and <code>name</code>. </p>
  
  <p>The documentation gives no example how to override that defaults. So, how can I specify the <code>id</code> and <code>label</code> attributes for <code>dijit.form.Select</code>?</p>
  
  <p>My data looks like that:</p>
  
  <pre><code>[{"id":1,"name":"Item 1"},{"id":2,"name":"Item 2"},{"id":3,"name":"Item 3"}]
  </code></pre>
  
  <p>In case it's not possible, what dijit widget can I use for selection restricted only to items from Store?</p>