Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9174525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:46:09+00:00 2026-06-17T16:46:09+00:00

Using a Sencha MVC example as a guide, I have created the following datastore:

  • 0

Using a Sencha MVC example as a guide, I have created the following datastore:

Ext.define('CART.store.CartStore', {
extend: 'Ext.data.Store',
model: 'CART.model.CartModel',
autoLoad: true,
storeId: 'thecart',

proxy: {
    type: 'ajax',
    api: {
        read: 'app/testdata/items.json'
    },
    reader: {
        type: 'json',
        root: 'Items',
        successProperty: 'success'
    }
}
});

I have a Grid Panel defined that refers back to the datastore, as the following fragment shows:

Ext.define(‘CART.view.CartContents’,{

extend: ‘Ext.grid.Panel’,

alias: ‘widget.CartList’,

title: ‘Contents of Shopping Cart’,

store: ‘thecart’,

…other stuff…

});

When I run my app without the CartContents’ "store" attribute, the grid isplays without problems. Unfortunately, with "store" set to the ID of the datastore, I see the following failure when I run the app in Firebug:

Timestamp: 1/16/2013 9:19:08 PM

Error: TypeError: me.store is undefined

Source File: <my-url-to>/ext-all-debug.js

Line: 94926

Note I had to put in <my-url-to> because this posting app will not let me post this with the exact URL.

Obviously, the app is not finding the CartStore, despite the fact that, according to documentation and the info in the examples, it should.

Could someone tell me if I am missing anything? How can I make my Grid find the datastore?

Someone please advise.

UPDATE 1/17/2013: I took the advise provided in the two answers below (thanks for the quick responses). The new view object fragment is shown below:

Ext.define(‘CART.view.CartContents’,{

extend: ‘Ext.grid.Panel’,

alias: ‘widget.CartList’,

requires: [‘CART.store.CartStore’],

title: ‘Contents of Shopping Cart’,

store: ‘CartStore’,

…other stuff…

});

Unfortunately, I am still getting the same error.
I did try flushing the cache, just in case the browser was not getting the updated page. This has had no effect either. me.store still appears undefined.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:46:09+00:00Added an answer on June 17, 2026 at 4:46 pm

    ID property is not used to set the view store

    try to replace this:

    store: 'thecart',
    

    to this:

    store: 'CartStore',
    

    and add requires

    requires: ['CART.store.CartStore']
    

    on view class

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Sencha Architect with Extjs 4 and by following the basic example
I have created navigaton view using Sencha touch 2. Navigation view has list component
I am using http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/portal/portal.html to build a portal. Obviously, i have custom windows inside
I am newbie to Sencha Touch 2 and have created a basic applications using
So I've set my project up using sencha cmd. I have the following dir
I know that using Sencha's sandboxing it's possible to have Ext 4 and 3
I have created a small test page using Sencha Touch , OpenLayers and I
I'm writing all my components in ExtJS's new MVC fashion using Ext.define() . I
i am using sencha touch 2 to build an app. i Have the following
I'm using Sencha's Ext.data.Store to hold some items. Right now they come from an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.