【发布时间】:2010-09-08 09:51:34
【问题描述】:
我有一个带有自定义项目渲染器的数据组,当我将它从停止工作的 http 服务绑定到 XML 时。
我的 XML:
<SDLIST>
<chartlist>
<reportname>FACTORY STATUS</reportname>
<reportimage>file:/D:/Work/RapidReport/Images/Charts/Vertical-Linear-Gauges.png</reportimage>
</chartlist>
<chartlist>
<reportname>FACTORY STATUS</reportname>
<reportimage>file:/D:/Work/RapidReport/Images/Charts/Vertical-Linear-Gauges.png</reportimage>
</chartlist>
然后是我的数据组:
<s:DataGroup x="10" y="42" width="696" height="414" itemRenderer="myComponents.ChartListComp" dataProvider="{new XMLListCollection(XML(getSpeedDialList.lastResult).SDLIST.charlist)}">
我的 Http 服务:
<mx:HTTPService resultFormat="e4x" id="getSpeedDialList" url="{serverURL}/Reporting/GetSpeedDial.xml" useProxy="false" method="POST" fault="Alert.show('There has been an a problem with the connection.\nPlease check your internet connnection and try again.' + getSpeedDialList.url ,'Connection Error')" showBusyCursor="true" >
我的组件使用:
{data.reportname}
我会感谢任何帮助,刚从 flex 3 升级,我不确定这是哪里的失误。
提前感谢您的帮助。
【问题讨论】:
标签: xml apache-flex data-binding flex4 itemrenderer