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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:59:23+00:00 2026-06-06T18:59:23+00:00

I am working with a PERL Miner::Base and JavaScript platform (.pm and .js). My

  • 0

I am working with a PERL Miner::Base and JavaScript platform (.pm and .js).
My JavaScript contains 3 ExtJS GridPanels.

Now, here’s my problem:

I have a function that takes ~1 minute to run and returns a list with references to the data needed for all 3 grids. Let’s call this function “foo”.

Currently, in order to load each of my grids’ store, I call a function that calls “foo” and returns only the relevant reference out of the list returned by “foo”.

I need a way to call “foo” only once and share the data it returns between my 3 stores.

Is there such a way?

Thanks.

Here is the basic structure of my code:

my_code.js:
gridA with storeA (calls my_code.pm::get_A_data)
gridB with storeB (calls my_code.pm::get_B_data)
gridC with storeC (calls my_code.pm::get_C_data)


my_code.pm:
get_A_data (calls foo and returns the first reference returned from foo)
get_B_data (calls foo and returns the second reference returned from foo)
get_C_data (calls foo and returns the third reference returned from foo)
  • 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-06T18:59:25+00:00Added an answer on June 6, 2026 at 6:59 pm

    If you have three grids you effectively would need to have three stores. However you can do one request, get a store object and then clone it into other two local copies. Search for cloning ExtJs store

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

Sidebar

Related Questions

Good Day, I have a simple working routine in Perl that swaps two words:
I have a working perl script that grabs the data I need and displays
I am working with Perl programs that write to an XML file by just
I am working on a perforce-perl script that creates labels. Due to repeated execution
Perl newbie here...I had help with this working perl script with some HASH code
I'm working with perl, and using DBI. Up to now, I've been using ->fetchall_arrayref
Trying to get a simple test perl script working. Have the following files/folder structure
I am working with Perl/CGI, MySQL, Perl Template toolkit. I have a database set
I have no experience working with Perl, and I'm trying to run the geo_to_mysql.pl
I have 2 fields I'm working with that are stored as smallint military structured

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.