0 Replies Latest reply on Oct 25, 2006 12:28 AM by

    Display Nested Data in TileList

      Hi Guys,

      I hope someone can help with this problem. I am working on a Flex app to display data for a online quoting system. Some of the products we sell we build kits. When the user selects a particular product I show details on the product along with a list of associated products and I would also like to show the kits that are based on that product as well. The number of kits associated with a particular product is variable.

      I have enclosed the type of data that is being returned from my web service once the user selects a particular product. What I want to do is use the KitName as a heading and then show all the list of Products under that (In a tilelist or something that looks pretty).

      I am currnetly capturing this data from the result function of the web service as follows;

      model.Kits = event.result as ArrayCollection;

      where model.Kits is an Array Collection.

      I would appreaciate it if you could point me in the right direction to do this.

      <?xml version="1.0" encoding="utf-8" ?>
      <ArrayOfKit xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns=" http://localhost/">
      <Kit>
      <KitID>17</KitID>
      <KitName>Sony HVRA1P Standard Camera Kit</KitName>
      <KitPrice>0.0000</KitPrice>
      <KitDescription />
      <KitProducts>
      <Product>
      <ProductID>12793</ProductID>
      <Code>HVRA1P</Code>
      </Product>
      <Product>
      <ProductID>10749</ProductID>
      <Code>NPQM91D</Code>
      </Product>
      <Product>
      <ProductID>72639</ProductID>
      <Code>MAN501.755BK</Code>
      </Product>
      <Product>
      <ProductID>9246</ProductID>
      <Code>MAUV37</Code>
      </Product>
      <Product>
      <ProductID>28615</ProductID>
      <Code>PMUB-1</Code>
      </Product>
      </KitProducts>
      </Kit>
      <Kit>
      <KitID>18</KitID>
      <KitName>Sony HVRA1P Deluxe Camera Kit</KitName>
      <KitPrice>0.0000</KitPrice>
      <KitDescription />
      <KitProducts>
      <Product>
      <ProductID>12793</ProductID>
      <Code>HVRA1P</Code>
      </Product>
      <Product>
      <ProductID>10749</ProductID>
      <Code>NPQM91D</Code>
      </Product>
      <Product>
      <ProductID>12514</ProductID>
      <Code>60686</Code>
      </Product>
      <Product>
      <ProductID>16725</ProductID>
      <Code>VCLHG0737Y</Code>
      </Product>
      <Product>
      <ProductID>9246</ProductID>
      <Code>MAUV37</Code>
      </Product>
      <Product>
      <ProductID>12381</ProductID>
      <Code>AUDIO-R90</Code>
      </Product>
      <Product>
      <ProductID>70645</ProductID>
      <Code>ECM674</Code>
      </Product>
      <Product>
      <ProductID>57448</ProductID>
      <Code>IM2400</Code>
      </Product>
      </KitProducts>
      </Kit>
      </ArrayOfKit>