Ok so here is the code:
[Bindable]
private var _amount : Object=new Object();
public function get amount():Object
{
return _amount;
}
public function set amount( o:Object ):void
{
_amount = o;
}
//and in the onSync:
private function onSOSync (args:SyncEvent):void{
amount=myRemote_so.data;
dg.dataProvider=amount;
}
I guess there are lots of mistakes in this code;/
----- Original Message -----
From: Clint Tredway
To: [email protected]
Sent: Wednesday, March 14, 2007 3:04 PM
Subject: Re: [flexcoders] How to bind a SharedObject to a dataprovider
without seeing your code, I would say you need to convert the SO into an
ArrayCollection then bind that to your grid. But again, I say this without
seeing your code.
On 3/14/07, Stanisław Fiedor <[EMAIL PROTECTED]> wrote:
Hi!
On the server side I've got a SO object which is a userlist - its
properties are Objects and tey look like ("user_name",
({name:"lala",id:"3"....}))
Now I want to bind the data from the SO to my datagrid.. unfortunatelly
after I do this - the data doesn't appear in the datagrid..
I've read that I need to prepare a wrapper - but with that one I've done it
doesn't work - don't know why..
If somebody could show me a working example I would be very thankful ;)
BR
stf
--
http://indeegrumpee.spaces.live.com/