Results 1 to 2 of 2

Thread: Loading store from multiple rest services

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    5

    Default Loading store from multiple rest services

    Hi Everybody, i have a situation where i cannot control the rest services i'm going to consume so basically what i'm been provide is two services one with a list of entities (i.e. products) that return basic information of each entity (just id and description) and also provides a "uri" which contains the url of the service to access the rest of the of the data of that particular entity; that uri is the other service i'm being provide btw .

    So my question is if i have a model for product and a store for product with a proxy that points to the first service (list of products with id and descriptions only) but i want to have a grid that displays id, description and price, is there an event or something that will allow me to build my store by reading the first service and, for each product returned, trigger the other service (which url is provide) to obtain its price.

    Any sugestion on what will be the best way to aproach these?

    Thanks in advance.

    Daniel

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Answers
    102

    Default

    Daniel,

    Welcome to the forums!

    Unfortunately, the data proxy is only designed to pull data from a single web source. The best way to do what you want to do is most likely to extend the proxy where you can use Ajax to pull data and then flatten that data (merge) so the data store can digest.

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
  •