- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
By dynamic DG column you mean?
Sincerely,
Michael
El 24/04/2009, a las 7:30, aravindakumarthangaraju <forums@adobe.com>
escribió:
>
Hi All,
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" backgroundColor="white" width="500" height="300"
creationComplete="onload()" >
<mx:Style>
DataGrid {
alternatingItemColors: #a1a1a1,#8bb8e6;
borderColor:#050505; borderStyle:outset;
color:#ffffff;
editable:false;
fontSize:11; fontWeight:bold; fontFamily:Tahoma;
horizontalGridLines:false;
headerStyleName:myHeaderStyles;
headerSeparatorSkin:ClassReference("mx.skins.ProgrammaticSkin");
rollOverColor:#5CC2F7;
selectionColor:#E8C76D; sortableColumns:true;
textAlign:center; textRollOverColor:#FD0606;
textSelectedColor:#1301FF;
variableRowHeight:true;
verticalAlign:middle; verticalGridLines:false;
verticalGridLineColor:#050505;
wordWrap: false;
}
.myHeaderStyles
{
color: #ffffff;
fontWeight: bold; fontFamily:Arial; fontSize:13;
}
</mx:Style>
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.charts.renderers.CircleItemRenderer;
import mx.charts.series.ColumnSeries;
public var myData:ArrayCollection;
private var now:Date=new Date();
private var str:String;
private var st:String;
>
>
>
public function onload():void
{
str=String(now.getDate())' 'String(now.getMonth())+'
'String(now.getFullYear())' 'String(now.getHours())'
'String(now.getMinutes()' '+String(now.getSeconds()));
trace(str);
st=srv.url="Data/NumberChart.xml?rand="+str;
trace(st);
srv.send();
}
public function onresult():void
{
myData=ArrayCollection(srv.lastResult.Document.Record)
trace(myData);
}
]]>
</mx:Script>
<!-- xml path (data passing) -->
<mx:HTTPService id="srv" result="onresult()" />
<mx:WipeRight id="myWR" duration="2000"/>
<mx:WipeLeft id="myWL" duration="2000"/>
<mx:HBox label="Home Team" width="100%" height="100%"
backgroundColor="white">
<mx:DataGrid id="HomeTeam" dataProvider=""
creationCompleteEffect ="" width="500" height="300"
headerBackgroundSkin="@Embed(source='assets/
Tileimage4movieplayer_img.png')">
<mx:columns>
<mx:DataGridColumn id="Hcol1" headerText="Player" draggable="false"
dataField="DisField" width="170" showDataTips="true"
wordWrap="true" />
<mx:DataGridColumn id="Hcol2" headerText="Average" draggable="false"
dataField="Value" width="170" showDataTips="true" wordWrap="true" />
<mx:DataGridColumn id="Hcol3" headerText="Matchs" draggable="false"
dataField="Prefix" width="170" showDataTips="true" wordWrap="true" />
</mx:columns>
</mx:DataGrid>
</mx:HBox>
>
</mx:Application>
>
and my xml code is...
>
<?xml version='1.0' encoding='utf-8' ?>
<Document Title='50 Runs Milestone'>
<Record>
<DisField>K Sangakkara</DisField>
<Value>200.00</Value>
<runs>50</runs>
<Prefix>KXIP Vs DC</Prefix>
</Record>
<Record>
<DisField>R Sharma</
Views
Replies
Total Likes