Over 10 years of community discussion and knowledge are maintained here as a read-only archive.
public function get users():Object{ return data as Object;}
userList.users=userProxy.users as ArrayCollection
userList.userDatagrid.dataProvider=userProxy.users;
userList.users=new ArrayCollection([{username: 'bigjoe', fname: 'john',lname:"Doe"...}]);
userList.users=userProxy.users
...private var resultAC:ArrayCollection;...public function get users():ArrayCollection{ return data as ArrayCollection;}...private function onLoadAllResultHandler(event:ResultEvent):void { resultAC= event.result as ArrayCollection; setData(resultAC); sendNotification(USER_LIST_RESPONSE,resultAC); }
[Bindable] public var users:ArrayCollection;
...override public function handleNotification( notif:INotification ):void{ switch ( notif.getName() ){ ... case UserProxy.USER_LIST_RESPONSE userList.users = userProxy.users as ArrayCollection break; } ... public function get userList():UserList{ return viewComponent as UserList; }}
private function onLoadAllResultHandler(event:ResultEvent):void { resultAC= new ArrayCollection(event.result as Array); setData(resultAC); sendNotification(USER_LIST_RESPONSE,resultAC); }