0 Replies Latest reply on Aug 14, 2009 8:41 AM by karnatis

    Reading List object in lastresult in flex.

    karnatis

      Hi All,

       

         I'm new to flex. In my remote java class I'm returning java.util.List which is having State object.

       

         Example:

       

          List result = new ArrayList();

          State st = new State();

          st.addCode("IL");

          st.addName("Illinois");

          result.add(st);

          st = new State();

          st.addCode("VA");

          st.addName("Virginia");

          result.add(st);

        

       

      When I call this method for flex using remote object, and try to add below code

        

      <mx:Text

       

      text="{ro.getStates.lastResult}"/>

       

      It is returning [object object],[object object]

       

      Can someone please let me know, how to get actual values from java.util.List in flex lastResult.

       

       

      Thanks in advancd.

       

      Regards,

      Sharath.