[CLOSED] Is there a way to merge stores from multiple sources?

  1. #1

    [CLOSED] Is there a way to merge stores from multiple sources?

    Is there some way I can use a grid to show content from merged external sources (ajaxproxy)?

    I am using an external json service to retrieve search results but results are unreliable if I only do a single search. I need to do one based on elements in the name and one based on other parameters.

    Any insight on how this can be done would be helpful. Also, this must be done on the client-side. Also the resultset is the same so modelfield is unchanged.
    Last edited by Daniil; Sep 17, 2013 at 5:30 AM. Reason: [CLOSED]
  2. #2
    Just a thought but could I use the same store, change the url, set addRecords:true, then reload?
  3. #3
    Hi @michaeld,

    It can be addressed this way:
    <ext:Store>
        <Listeners>
            <BeforeLoad Handler="operation.addRecords = true;" />
        </Listeners>
    </ext:Store>
  4. #4
    Quote Originally Posted by Daniil View Post
    It can be addressed this way:
    <ext:Store>
        <Listeners>
            <BeforeLoad Handler="operation.addRecords = true;" />
        </Listeners>
    </ext:Store>
    I don't understand. Are you trying to pose that's the proper way to make the store accept adds instead of replace if I follow the steps I indicated in the 2nd message?

    Could you elaborate?
  5. #5
    Yes, a way to avoid removing previously loaded records on subsequent load requests of Store's Proxy is to use the addRecords: true option.

Similar Threads

  1. Replies: 24
    Last Post: Jan 30, 2013, 4:22 AM
  2. Multiple Clicking on tree shows multiple items
    By yash.kapoor in forum 2.x Help
    Replies: 1
    Last Post: Oct 16, 2012, 7:44 AM
  3. Replies: 6
    Last Post: Jun 08, 2011, 10:04 AM
  4. Replies: 0
    Last Post: Jan 19, 2010, 10:24 AM
  5. Replies: 7
    Last Post: Dec 18, 2008, 12:09 AM

Posting Permissions