2 Replies Latest reply on Mar 10, 2010 10:09 PM by Flex harUI

    How to convert ObjectProxy into an Array\ArrayCollection?

    megharajdeepak Level 1

      Hi.....

       

      I have a ObjectProxy which I get from backend system into flex, which has this structure under ResultEvent:

       

      ObjectProxy.JPG

       

      This objectproxy will be dynamic ie., I have 6 field values now. Based on the inputs passed on while fetching the data from backend system, this might vary. The next time, it might have 2 to 3 more fields along with the existing ones.

       

      I want to display this as a Pie Chart. For this, I would need an array in this form:

       

      ArrayCollection.JPG

       

      Can you please help me on how can I create a dynamic array of this form above, using that ObjectProxy? If not, is there any way, I can use that ObjectProxy data to display the Pie Chart, which is what my purpose it?

       

      Appreciate your kind help

       

      <!-Deepak-->