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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:51:58+00:00 2026-06-10T04:51:58+00:00

I have a store being used by several charts. I get my data remotely

  • 0

I have a store being used by several charts. I get my data remotely with an ajax call. In the php script that I link it too, I’m just going to change the parameters of my query to adjust for the different charts.

Here’s my idea: I pass the title of the chart’s panel as a parameter to my php script. That’ll tell me which chart it is.

How do I access the title of whatever chart the store is being used by?

 var my_store = Ext.create('Ext.data.JsonStore', {
fields: ['project', 'accepted', 'rejected', 'deleted', 'undefined'],
proxy: {
    type: 'ajax',
    url: 'generate_proj.php',
    extraParams: {foo: **chart.id**},
    reader: {
    type: 'json'
    }
},
autoLoad: true,
listeners:  { 
    beforeload: function(store,operation) {
    //operation.params.foo = this.idname;
    },

    load: function(obj,records) {
    var text = Ext.decode(obj.responseText);
    Ext.each(records,function(rec) {                     
    });
    }
    }
});  

Here’s what I’ve done so far. Getting the name of a single chart/panel is no problem. I want the store to be able to dynamically read the name of what’s using it. How?

  • 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-10T04:52:00+00:00Added an answer on June 10, 2026 at 4:52 am

    Somewhere, you have some code that switches between the various charts. During that code, you could do something like

    activeChart.getChartStore().proxy.extraParams.foo = activeChart.getId();
    

    where activeChart is whatever reference you have to the chart you are about to show. Then when you load the store, it’ll send the correct parameter.

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

Sidebar

Related Questions

I have a database staging table that is used to store data fed in
I have used localStorage[key] and key being different strings to store my values while
I have some data that I want to store somewhere in my Rails app
I have a j2ee webapp that's being used internally by ~20-30 people. There is
We have a WCF service developed in C# which is being used by several
I have several files uploaded with a form that is processed by a PHP
I have a website that needs to store two sets of user data into
I have an existing Microsoft Exchange 2003 OWA installation that is currently being used:
After working on several GAE apps, some of which are being used for production,
I have an article system which is used by several users. Articles have their

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.