assign dataprovider that bound to a run-time variable value
var selecteditem:string="a";
public var profitxml:xml =
<root>
<txn>
<date>2007-11-09</date>
<a>98.25/1.75/0</a>
<b>99.99/.01/0</b>
</txn>
<txn>
<date>2007-11-12</date>
<a>99.4/.6/0</a>
<b>99.99/.01/0</b>
<c>99.53/.47/0</c>
</txn>
</root>;
assume have datagrid uses profitxml dataprovider, how select item "a" datagrid? doesn't seem possible like: dg.dataprovider = profitxml.txn.{selecteditem}
public var profitxml:xml =
<root>
<txn>
<date>2007-11-09</date>
<a>98.25/1.75/0</a>
<b>99.99/.01/0</b>
</txn>
<txn>
<date>2007-11-12</date>
<a>99.4/.6/0</a>
<b>99.99/.01/0</b>
<c>99.53/.47/0</c>
</txn>
</root>;
assume have datagrid uses profitxml dataprovider, how select item "a" datagrid? doesn't seem possible like: dg.dataprovider = profitxml.txn.{selecteditem}
are saying want datagrid use item data populating datagrid?
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment