1 Reply Latest reply on Nov 19, 2007 11:39 PM by Ivascu Cristian

    Local data

    Zolotoj Level 3
      Does Flex have a way of pulling all data into a local cache at one server trip? Of course, the server will be responding back with a single XML consisted of all the data. Can then data be split then and assigned to each conponent (Lists, combos, dataGrids)? That is especially important becuase grabbing data for each data bound control individually encreases the initial load time drammatically. Plus, any kind filtering, dependent filtering, and etc. works much better dealing with local data. Any idea?

      Thanks
        • 1. Re: Local data
          Ivascu Cristian Level 1
          Hi,

          You can do that. The only thing to watch out is to have the server sends you properly formatted XML. Then you would define a few elements in the XML, corresponding to the various types of data that you have. When the Flex application reads the XML response, simply put each block of XML into a separate model, or an ArrayCollection, and you can then power all the UI and even logic from these local arrays / models.

          Hope this helps,
          Cristian