I have been having an issue with the modelLocator arrayCollection assignment of a local list after the Web Service result is returned.
After the Web Service is returend with a list of data, I add each record as an Item onto my local ArrayCollection.
Now that I want use this ArrayCollection on the datagird, I am trying to assign this local arraycollection onto my Arraycollection varibale on modelLocator, so it can be used on the mxmxl datagrid.
However, the screen seems to freeze at this point of the code.
public var getBaseDataList: ArrayOfBaseData;
Deletagate on result of Web Service call:
__ccModel.getBaseDataList.addItem(data); // Code Freezes at this point.
I am also tried to put the Webservice results into local list as,
var baseList = new ArrayCollection;
__ccModel.getBaseDataList = baseList; // Code Freezes at this point
My local baseList does show as having 3 items.
Any insight on this issue would be great.
Hi if you will explain your problem in more simpler manner it will be best to track an issue.According to my understanding have to make modelLocators data bindable with dataGrid/ or you can try to replace ArrayOfBaseData with ArrayCollection.
You have to ensure that modelLocator collection should be instantiated.
var arrColl:ArrayCollection = new ArrayCollection();