6 Replies Latest reply on Jan 1, 2009 5:15 PM by kenji776

    Looping over Nested Structure

    kenji776
      Hey Guys,
      I have a component that returns a structure. The structure is called ContactQuery. ContactQuery has to elements, one called Results, and one called Success. Results contains the data I want to loop over. If you try looping over the ContactQuery by using CFLoop and specify the ContactQuery as the collection, of course it only loops twice (once for Results, once for Success). How can I loop over the Results structure withing ContactQuery? You can see the dump of the structure at:
      http://www.digitalswordsmen.com/cfschedule/admin/Create_Tokens_Table.cfm

      Attached is the code I have. I am just unsure of the syntax for looping over the Results section of the structure.

      Thank you.