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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:44:36+00:00 2026-05-16T05:44:36+00:00

var store = new Ext.data.JsonStore({ id:’jfields’, totalProperty:’totalcount’, root:’rows’, url: ‘data.php’, fields:[{ name:’jfields’ }, {

  • 0
var store = new Ext.data.JsonStore({
    id:'jfields',
    totalProperty:'totalcount',
    root:'rows',
    url: 'data.php',  
    fields:[{ name:'jfields' },
            { name:'firstyear' , mapping :'firstyear' , type:'float' },
            { name:'secondyear', mapping :'secondyear',    type:'float' },
            { name:'thirdyear' , mapping :'thirdyear' , type:'float' },
            { name:'fourthyear', mapping :'fourthyear',    type:'float' },
            { name:'fifthyear' , mapping :'fifthyear' ,    type:'float' } ]

    }                                                    
});

What I want is to add data at the end for this store , but I am totally confused , what I did is I add the following code to it but not working.

listeners: {
    load : function(){
        BG_store.add([{"jfields":"Monthly","firstyear":22.99,"secondyear":21.88,"thirdyear":21.88,"fourthyear":22.99,"fifthyear":21.88}]);
    }
}

But I do not think my concept are cleared ,Please any body show some way how to do it .

  • 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-05-16T05:44:37+00:00Added an answer on May 16, 2026 at 5:44 am

    You need to define a record type, create it and at it, e.g:

    TaskLocation = Ext.data.Record.create([
        {name: "id", type: "string"},
        {name: "type", type: "string"},
        {name: "type_data", type: "string"},
        {name: "display_value", type: "string"}
    ]);
    

    Then:

    var record = new TaskLocation({
        id: Ext.id(),
        type: "city",
        type_data: "",
        display_value: "Brighton"
    });
    

    Then:

    my_store.add(record);
    my_store.commitChanges();
    

    Remember by the time the data is in the store it’s not in the same format as you sent it down but in Record objects instead.

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

Sidebar

Related Questions

I've configured my store as: var store = new Ext.data.JsonStore({ url: 'gridData.php', root: 'movies',
The Store var timesheet = new Ext.data.JsonStore( { root: 'timesheetEntries', url: 'php/scripts/timecardEntry.script.php', storeId: 'timesheet',
I have a JsonStore: var store = new Ext.data.JsonStore({ root: 'Data.items', remoteSort: false, fields:
I have a store like this: var store = new Ext.data.Store({ id: 'store', url:
I have a JsonStore configured like so: var store = new Ext.data.JsonStore({ restful: true,
I have a store: var store = new Ext.data.store({ autoLoad: true, autoSync: true, model:
i had a jsonStore like this var ch01_store = new Ext.data.JsonStore({ autoLoad:true, storeId: 'ch01_store',
The code Ext.onReady( function() { Ext.QuickTips.init(); Ext.namespace('TimeTracker'); TimeTracker.dataStore = new Ext.data.JsonStore( { root: 'timecardEntries',
I try to make Ext.Data.Store working... With a normal proxy it works great: var
How can I get JSON array from Ext.data.Store outside the function? The code: var

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.