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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:12:52+00:00 2026-06-09T09:12:52+00:00

i use a store with a model. The jason has a value i want

  • 0

i use a store with a model. The jason has a value i want to use in an alert. The json is like this

{"slapen":[{"naam":"test","leeftijd":"43"},{"naam":"test2","leeftijd":"27"}]}

i want to display an alert for the first result. So when the store is loaded i want an alert like this

alert('De eerste winnaar is {here_comes_leeftijd} jaar');

so the number is what i want to show. Is this possible?

winnaars = new Ext.data.Store({
    model: 'stepDetails',
    pageSize: 20,
    loadMask: false,
    sortOnLoad: true,

    proxy: {
        type: 'ajax',
        url: detailURL,
        startParam: '',
        limitParam: '',
        pageParam: '',
        reader: {
            type: 'json',
            root: 'slaevents'
        }
    },
    autoLoad: false
});
  • 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-09T09:12:54+00:00Added an answer on June 9, 2026 at 9:12 am

    You can listen to the store’s load event (either externally or by using the listeners config) and inspect the returned records there and act upon them.

    winnaars = new Ext.data.Store({
        model: 'stepDetails',
        pageSize: 20,
        loadMask: false,
        sortOnLoad: true,
    
        proxy: {
            type: 'ajax',
            url: detailURL,
            startParam: '',
            limitParam: '',
            pageParam: '',
            reader: {
                type: 'json',
                root: 'slaevents'
            }
        },
        autoLoad: false
    
    
        listeners: {
            load: function( aStore, aRecords, aSuccess, aeOpt) {
                // Do something here.
                console.log(aRecords);
            }
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've a model which use paperclip, in dev env I want to store files
Good day! I've a model that is binded from JSON request, say like this:
Here is example initial_data.json. I want let django store value from column 'name' into
is there an easy approach to store my model, which I use with EclipseLink,
Like a tag that I can use to store some necessary info? But really
I have this FIFO which I'm going to use to store data from network
In the documentation, i have found a store instantiated like this: var store =
In EXTJS i will use a model and store for my grid. Now is
I have created a model and store in which read in a json file
I have this models: Store and Address . The second model Address I'm using

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.