Never mind, I have already discovered the problem. I am using AMFPHP and when you return a recordset, with Flex 2, AMFPHP, in fact, return an array of array, and the fields of the records are numbers not the field name.
This does not occurs when you return only one record. So you have to map the selected client, fill the attributes of the record, and call an updateView function. So the binding will not work until AMFPHP or Flex 2, or both make some adjustments to receive recordsets. Thansk anyway --- In flexcoders@yahoogroups.com, "mvbaffa" <[EMAIL PROTECTED]> wrote: > > Hi everybody, > > I am migrating a Custom Component, from Flex 1.5 to Flex 2 Beta 2, > that has inside it two other components: > > - ClienteList: A datagrid with a list of Clients > - ClientSummary: Panel that show the details of a Selected Client in > the DataGrid > > The main component is like this > > [Bindable] > public var selectedClient : ClientVO; > > private function doSelectClient(event:Event) : void { > var e:ControllerEvent = ControllerEvent (event); > selectedClient = (ClientVO) e.result; > } > > <mx:HBox label="" themeColor="haloSilver" width="100%" height="100%"> > > <view:ClienteList id="listClients" clientSelected="doSelectClient > (event);" width="60%" height="100%" /> > <view:ClientSummary id="summClient" clientDetail="{ > selectedClient }" width="40%" height="100%"/> > > </mx:HBox> > > > When the change event occurs in ClientList it fires an event, > clientSelected, that executes the function doSelectClient. This is > working because I can debug and see that doSelectClient is executing > when I select an item in the datagrid. > > As you can see doSelectClient sets the property selectedClient that > is bounded to the property clientDetail of ClientSummary. At > ClientSummary this property is defined like this > > [Bindable] > public var clienteDetail : ClienteVO; > > and the PanelTitle is defined like this > > <mx:Panel id="summaryPanel" width="100%" height="100%" > layout="absolute" title="{ clienteDetail != null ? > clienteDetail.name: 'Client' }" > themeColor="haloSilver" styleName="PanelHeader" cornerRadius="7"> > > The property clientDetail binds to the Title of ClientSummary with > the clientName. But nothing works. In Flex 1.5 this is working OK > but in Flex 2 it seems that a update in the property clientDetail > does not cause any changes in ClientSummary > > I don't know what is happening, can anybody help me > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/