Results 1 to 5 of 5

Thread: Multiple dynamic stores but 1 request to server

  1. #1

    Default Multiple dynamic stores but 1 request to server

    Hi,

    I have show a store below. As of now its defined as a local store. I need to convert them to dynamic store where data comes from back end via API request. I have defined many stores like this, so that i can reuse it. Problem is from back end we have only 1 service, which will pull data and it will have data for all dynamic stores like below. 1 call will have all store data. So how do i build my store now? Because all examples show 1 store will have 1 call made.

    Code:
    Ext.define('Abc.store.From', {
        extend: 'Ext.data.Store',
        alias: 'store.From',
        fields: ['key', 'value'],
        proxy: {
            type: 'memory',
            reader: {
                type: 'array'
            }
        },
        data: [
            ["ALL", "ALL"],
            ["US", "US"]
        ]
    });

  2. #2
    Sencha Premium User
    Join Date
    Feb 2016
    Posts
    63
    Thanks,
    Amit

  3. #3

    Default

    Hi,

    Any example which i can refer to?

  4. #4

    Default

    May be i was not clear. I want to make 1 API call and create/define 10-20 stores from the data available in API JSON.

  5. #5
    Sencha User
    Join Date
    Apr 2013
    Posts
    914
    Answers
    105

    Default

    Take a look at Saki's Loading many stores at once tutorial.

Similar Threads

  1. Multiple (dynamic) stores for animated multi-line chart
    By Hal_Greenwald in forum Ext: Q&A
    Replies: 2
    Last Post: 3 Jun 2014, 6:15 AM
  2. One Ajax Request to Populate Multiple Stores
    By Epiphron in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 6 Apr 2013, 12:46 AM
  3. Synchronising multiple data stores with a single request
    By jay252 in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 8 Nov 2012, 7:12 AM
  4. Load multiple stores with one request
    By raz0r1 in forum Ext: Q&A
    Replies: 0
    Last Post: 13 Sep 2011, 1:39 AM
  5. How to load data to multiple stores with one request in Sencha Touch?
    By Nicodemuz in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 23 Mar 2011, 1:51 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •