title: MVC Data Store - WebORB, Sencha, Ext Js 4
body: <p>I am trying with EXT JS 4, Sencha Touch 2.0 and WebORB.</p>
  
  <p>What I am trying to build a store in MVC of Sencha Touch through Ext dynamically.
  I have called the below javascript function as below in the  section in Index.html:</p>
  
  <pre><code>&lt;script src="sencha-touch-all.js"&gt;&lt;/script&gt;
                  &lt;script src="webORB.js"&gt;&lt;/script&gt;
                  &lt;script&gt;
                  var dataFetched;
                  var dataGet=function(){
          &lt;!--  Class Name and URL are replaced in the original program--&gt;
                  this.proxy = webORB.bind("ClassName", "URL");
                      dataFetched=this.proxy.GetClassList(1301722);   
                  //console.log(dataFetched);
              }
                  &lt;/script&gt;
                  &lt;script src="app.js"&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>The following is my <em>app.js</em></p>
  
  <pre><code>Ext.Loader.setConfig({
      enabled: true
  
  });
  Ext.application({
      name: 'SBR',
      controllers: [
          'Main','Blog','Comments'
      ],
      views : [
      'Home','Blog', 'Comments'
  ],
      models : ['Comments'],
      stores: ['Comments'],
      launch: function(){
          dataGet();
          console.log(dataFetched);
          Ext.create('SBR.view.Viewport');
      }
  });
  </code></pre>
  
  <p>The following is my Comment.js - Store</p>
  
  <pre><code>Ext.define('SBR.store.Comments',{
      extend: 'Ext.data.Store',   
      config: {
          model: 'SBR.model.Comments',
          data: dataFetched
      }
  
  });
  </code></pre>
  
  <p>The following is Comment.js - Model</p>
  
  <pre><code>Ext.define('SBR.model.Comments',{
          extend: 'Ext.data.Model',
  
          config: {
              //fields: ['subject','body']
              fields: ['bookImageUrl','authorFirstName','authorLastName']
          }
      })
  </code></pre>
  
  <p>The following is the Comment.js - View</p>
  
  <pre><code>Ext.define('SBR.view.Comments',{
      extend: 'Ext.List',
      xtype: 'commentspage',
      config:{
          title: 'Comments',
          iconCls: 'star',
          //indexBar: true,
          store : 'Comments',
          itemTpl: '{authorLastName}',
          onItemDisclosure: function(item) {
              console.log('Disclose more info on' + " " + item.data.subject);
          }
      }
  });
  </code></pre>
  
  <p>If I define the store with static Json Data it is working fine, but when I try to access it with WebORB it does not.</p>
  
  <p>The console entries are done before it shows data to the console. Why it is not showing any data in the comment's view or my approach is entirely wrong for collecting and loading data through WebORB to the store?</p>