title: ExtJs ArrayStore (reload or reinit?) is it possible?
body: <p>I have the following Extjs3 ArrayStore.  Elsewhere I'm listening for a value and reloading the store w/ new data elsewhere in the page (the code below the store). I'm looking for a way to 'reset' or reinit the store to it's original data after the load..i.e the next time thru the listener</p>
  
  <p>The Store:</p>
  
  <pre><code>  var applicationVersionStoreOriginalData = [
              &lt;c:set var="firstLoop" value="true"/&gt;
              &lt;c:forEach var="productline" items="${environmentLookup.productlines}"&gt;
              &lt;c:forEach var="application" items="${productline.applications}"&gt;
              &lt;c:if test="${!firstLoop}"&gt;,
              &lt;/c:if&gt;
              &lt;c:set var="firstLoop" value="false"/&gt;
              ["&lt;c:out value="${application.recid}"/&gt;","&lt;%=ValueC.PRODUCT_NOT_LISTED%&gt;","&lt;%=ValueC.PRODUCT_NOT_LISTED%&gt;"]
              &lt;c:forEach var="applicationversion" items="${application.applicationversions}"&gt;,
              ["&lt;c:out value="${application.recid}"/&gt;","&lt;spring:message text="${applicationversion.applicationversion}" javaScriptEscape="true"/&gt;","&lt;c:out value="${applicationversion.recid}"/&gt;"]
              &lt;/c:forEach&gt;
              &lt;/c:forEach&gt;
              &lt;/c:forEach&gt;
          ];
  
      var applicationversionStore = new Ext.data.ArrayStore({
          fields: ['applicationId', {name: 'applicationversionName', type: 'string'}, 'applicationversionId'],
          data: applicationVersionStoreOriginalData,
          originalData: applicationVersionStoreOriginalData
      });
  </code></pre>
  
  <p>The Data load:</p>
  
  <pre><code>function filterApplicationVersionStore(appRecId) {
          console.log('AppRecId =' + appRecId);
          var store = Ext.getCmp("applicationversionCombo").getStore();
          var unlistedData = [[appRecId,"-- My version is not listed here --","-- My version is not listed here --"]];
          var applicationVersionStoreOriginalData = Ext.getCmp('applicationVersionStoreOriginalData')
          var applicationVersionCombo = Ext.getCmp('applicationversionCombo');
  
          if (!store.originalData) {
          store.originalData = store.getRange();
          }
  
          if (appRecId == '0309CD56B8CF4245A49E8C201C59AD36') {
              console.log('loading new data');
              store.loadData(unlistedData, false);
              store.reload();
          }
          else {
              console.log('loading old data');
              if (store.originalData) {
              store.loadData(store.originalData, false);
              }
          }
      }
  </code></pre>
  
  <p>I would now like to be able to reload the store with the data from the original; Is that possible?</p>
  
  <p>MANY MANY THANKS!</p>
  
  <p>I'm in ExtJs3.4</p>
  
  <p>here is what I'm seeing in the console..</p>
  
  <pre><code>passing appRecId to function = AAEBD771130144A3A207F8BDF10B910F 
  AppRecId =AAEBD771130144A3A207F8BDF10B910F 
  loading old data 
  
  ---WORKS (if i disable //store.loadData(store.originalData, false);) -- otherwise the store has dupes and seems to contain mulitples
  
  passing appRecId to function = 0309CD56B8CF4245A49E8C201C59AD36 
  AppRecId =0309CD56B8CF4245A49E8C201C59AD36 
  loading new data 
  
  --NEW 'EMPTY' DATA IS THERE
  
  passing appRecId to function = 987C7D2D6D194E5196F7598DDC624480 
  AppRecId =987C7D2D6D194E5196F7598DDC624480 
  loading old data 
  
  --EMPTY!
  </code></pre>