title: How to access the return value from a store.filter in extjs?
body: <p>I have the following code, where Im creating a store and querying it on load by passing the name_holder value. So bascially the query would be</p>
  
  <pre><code> /query/name:name_holder* 
  </code></pre>
  
  <p>where the name_holder value is entered by the user.  Now im trying to retrieve the returned record value but I'm not able to access it outside the store.load function. 
  Is my approach even correct? Im new to ext.js and any help would be appreciated. Thank you.</p>
  
  <pre><code>var store = Ext.create("Ext.data.Store", {
                      fields: [
                               {name: 'name', type: 'string'},
                               {name: 'id',  type: 'string'},
  
                           ],
                      proxy : name_proxy,
                  });
  
  var data_names= store.load({
                      params : {
                          query : name_holder
                      },
     callback: function(records, operation, success) {
                              if (success) {
                                  var data_id=  records[0].data.id;
                               } else {
                                  console.log('error');
                              }
                          }
                  });
      console.log(data_id);
  </code></pre>
  
  <p>I can access the data_id value inside the function, but not outside. Hence the console.log line gives me an error.                   </p>