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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:03:29+00:00 2026-06-14T18:03:29+00:00

this is my code var store = { roles_store: new Ext.data.Store({ autoLoad: false, proxy:

  • 0

this is my code

        var store = {
            roles_store: new Ext.data.Store({
                        autoLoad: false,
                        proxy: new Ext.data.HttpProxy({
                                                        url: 'a/b/c',
                                                      }),
                        remoteSort: true, 
                        baseParams: {

                                    },
                        reader: new Ext.data.JsonReader({
                                                totalProperty: 'total',
                                                root: 'root',
                                                fields:['roles']                
                                                        }),

            })
        };

this is my json

{“total”:3,”root”:[{“roles”:”A”},{“roles”:”B”},{“roles”:”C”}]}

If I wnat to add data into Ext.data.Store. How can I do?

(PS:Sorry,my English is not well. And my extjs is :http://docs.sencha.com/ext-js/3-4/#!/api/Ext.data.Store-method-addSorted)

  • 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-14T18:03:30+00:00Added an answer on June 14, 2026 at 6:03 pm

    This should work:

    Ext.define('roles', {
        extend: 'Ext.data.Model',
        fields: [
            {name: 'roles', type: 'string'}
        ]
    });
    
    var myStore = Ext.create('Ext.data.Store', {
        model: 'roles',
        proxy: {
            type: 'ajax',
            url : 'path/to/data/test.json',
            reader: {
                type: 'json',
                root: 'root',
                totalProperty: 'total'
            }
        },
        autoLoad: true
    });
    

    Check the examples here: http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.Store

    For v3.4:

    var store = new Ext.data.JsonStore({
    
        autoDestroy: true,
        url: 'path/to/data/test.json',
        storeId: 'myStore',
        autoLoad: true,
        idProperty: 'roles',
        root: 'root',
        fields: ['roles'] 
    });
    

    You need to use the jsonstore:
    http://docs.sencha.com/ext-js/3-4/#!/api/Ext.data.JsonStore

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

Sidebar

Related Questions

I have this code: var comboStore = new Ext.data.Store({ proxy : new Ext.data.HttpProxy({ url
this is my code var store = { user_store: new Ext.data.Store({ autoLoad: false, proxy:
this is my code var store = { user_store: new Ext.data.Store({ autoLoad: false, proxy:
How can I get JSON array from Ext.data.Store outside the function? The code: var
Given this code: var arrayStrings = new string[1000]; Parallel.ForEach<string>(arrayStrings, someString => { DoSomething(someString); });
Consider this code: var img = new Image(); img.onload = function() { console.log(this.width); };
Currently I am using this code: var regex = new Regex(@<span id=point_total class=tooltip oldtitle=.*?
I have this code : var tmp=$(this).attr('id').split(_); and I'd like to store on tmp
Code like this: var transaction = db.transaction([main], IDBTransaction.READ_WRITE); var store = transaction.objectStore(main); var request
This code var offset = $('#snapwrap_inner').offset(); alert(offset.left) in FF returns 0px but in Opera

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.