You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/02/21 11:20:04 UTC

[GitHub] pashminakazi opened a new issue #397: AdvancedDataGrid doesn't fetch Java side Data

pashminakazi opened a new issue #397: AdvancedDataGrid doesn't fetch Java side Data 
URL: https://github.com/apache/royale-asjs/issues/397
 
 
   I have Created 2 AdvancedDataGrid one with Java Side Data and Second with Manual Data
   With ManualData AdvancedDataGrid works Properly But with RemoteObject it doesn't Populate the grid
   I tried a lot to make it work but it doesn't work.
   
   In flex, we were using 
   gridDataProvider = e.result as ArrayCollection
   and it populates the grid 
   
   In apache, i tried e.result as ArrayCollection and many more attempts like 
   myGrid= e.result as Array
   gridDataProvider = new ArrayCollection(gridarray);
   when I trace them it was undefined..
   
   Now I use 
                                   var myGrid:Array = new Array(e.result);
   				trace(myGrid);
   				var gridDataProvider:ArrayCollection = new ArrayCollection([myGrid]);
   				trace(gridDataProvider);
   And Data of Java Side Method is shown now in trace: 
   ![advanceddatagrid](https://user-images.githubusercontent.com/42200979/53165108-aef30d00-35f3-11e9-8258-98cae66692e3.png)
   
   Manual Data is shown in AdvancedDataGrid but java side AdvancedDataGrid is empty 
   Screenshot: 
   ![output](https://user-images.githubusercontent.com/42200979/53165186-e06bd880-35f3-11e9-8d4e-4a88e04ae36a.png)
   
   HelloWorld.mxml: https://paste.apache.org/mP0s
   I am also pasting below my serverside code for your reference
   shmCompanySetupBO.java: https://paste.apache.org/YLeg
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services