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 8412949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:48:29+00:00 2026-06-10T00:48:29+00:00

I am getting null while I try to obtain a loaded store from the

  • 0

I am getting null while I try to obtain a loaded store from the controller. The load is a successful one too. I verified that.

I have the store as follows.

Ext.define('GridApp.store.schemedatastore',{
    extend: 'Ext.data.Store',
    model: 'GridApp.model.schemedatamodel',
    autoLoad: true,
    alias: 'store.schemedata',
    storeId: 'schemedatastoreid',
    constructor:function(){
        console.log('Calling parent');
        this.callParent(arguments);
        },
    listeners: {
        load:function(store,records,isSuccessful){
            if(isSuccessful){
                console.log('Load successful');
            }
            console.log(records[0].get('name'));
            console.log('scheme Data store loaded too.');
        },
    }
});

In my controller I added like,

stores: ['schemesstore',
             'schemedatastore'],

I tried accessing in these both ways in the controller,

Ext.getStore('schemedatastoreid'); which returns null and
this.getschemedatastoreStore(); which says it is an undefined function in controller.

Am I missing something over here?

  • 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-10T00:48:30+00:00Added an answer on June 10, 2026 at 12:48 am

    Try any of these:

    this.getSchemedatastoreStore()
    
    // the non-alias version of getStore    
    Ext.StoreManager.lookup('schemedatastoreid') 
    
    // in case MVC behavior overrides your storeId config
    Ext.StoreManager.lookup('schemedatastore') 
    

    MVC pattern will give your store the store class name as a store ID automatically if you don’t define your own.

    So if you delete your storeId: 'schemedatastoreid' config then you will automatically get a storeId of schemedatastore. I don’t normally give MVC stores a seperate storeId config so I don’t know if it causes a conflict somewhere. I also don’t normally give my stores an alias either, that might be causing the getStore function some difficulties too.

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

Sidebar

Related Questions

I am getting a Value cannot be null error from the code below: @Html.Label(material.ExtendedGroup)
Here is the exception which I am getting while handler try start the Progress
I'm Getting a Null Pointer Exception while canceling the Progress Dialog in Async Task
I am getting ArrayIndexOutOfBoundsException when i try to delete a row from a listView
I am getting null-exception throw error in the following code. What can be the
IN JAVA CODE IN JSP as below i m getting null value for fieldnoOfRecords.
Hi i am reading inbox using service but i m getting null pointer exception
I keep getting a null exception at the ; below. The ApiUsername & ApiPassword
I'm getting a Null pointer access: The variable 'numbers' can only be null at
I'm getting a null pointer on line 15...below (Session session = HibernateUtil.getSessionFactory.getCurrentSession();) public static

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.