I have a datagrid with a datagrid column. Except the data object contains a
data object.
For instance the object may be
id:int
transaction:Transaction
and Transaction
id:int
accountid:int
Notice since the datagrid is based upon the object that the datafield is
transaction.accountid
<mx:DataGridColumn id="accountDC"
headerText="Vendor"
editable="true"
dataField="transaction.accountid"
labelFunction="lookupAccountName"
visible="{fullDisplay}"
width="180">
This becomes a problem with generic function such as Lookups and combo boxes
because item[column.dataField] does not work. ie.
object[transaction.accountid]
protected function lookupAccountName(item:Object,
column:DataGridColumn):String
{
return accounts.lookupAccountName(item,
column.dataField);
}
Is there a way around this so I can continue to use generic functions?
--
View this message in context:
http://apache-flex-users.2333346.n4.nabble.com/Datagrid-functions-with-objects-with-objects-tp9022.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.