0 Replies Latest reply on Aug 12, 2011 3:59 AM by Shuja Shaikh

    help with displaying data in advanceddatagrid

    Shuja Shaikh



      I am working on flex 4.5.0 with java 5 as back end using blazeds.


      I've to display nested data in advanceddatagrid.


      Complex Person -> Person


      From the backend i am sending an ArrayList of ComplexPerson which consists of Person Object as well.


      code snippet is as follows


      ComplexPerson complexPerson = new ComplexPerson(person);



      return complexPersonList;


      When i access the ArrayList on the Flex end I am able to print the number of elements in the ArrayList but when i try to print the elements within the ArrayList I get following error


      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at net.sf.gilead.pojo.actionscript::LightEntity/toString()[C:\eclipse\workspace\gilead\gilea d\trunk\adapter-actionscript\src\net\sf\gilead\pojo\actionscript\LightEntity.as:55].


      So my question is


      1. how do i set a parent-child relationship between ComplexPerson and Person Object. whether i should do it java by passing some property or is there any functionality available in flex.

      2. I dont want to pass an XML from java to flex as i am using remote object.


      Could anyone please suggest what is the best way to do this?


      Thanks in advance.