on 11-20-2007 4:13 AM
Hi,
I want to populate data from a query template to a adobe flex pie chart. I am doing this because business user prefers beautiful objects ;).
Can anyone help me out in how to achieve this. I have some knowledge about flex.
Thanx in Advance
Hi,
You should use the query template as webservice and should call it in your flex application.
and
then you can populate the pie chart with data using
<mx:PieChart id="chart"
dataProvider="{Httpservice.lastResult.Rowsets.Rowset.Row}">
<mx:series>
<mx:PieSeries field="ColumnName">
</mx:PieSeries>
</mx:series>
</mx:PieChart>
Hope that helps.
Regards,
Musarrat
Message was edited by:
Musarrat Husain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can see a Video tutorial on xMII-Flex integration made by Abesh
at /people/abesh.bhattacharjee/blog/2007/08/27/use-xmii-services-in-adobe-flex-20-video
Coming to your question
you should declare the web service in your flex application as
<mx:HTTPService id="ServiceName"/>
then you can call it in a function let's say Hi()
private function Hi():void{
ServiceName.url=encodeURI("http://xMIIServerIP/Lighthammer/Illuminator?QueryTemplate="PathToQueryTemplate"&IllumLoginName="LoginName"&IllumLoginPassword="Password"&content-type=text/xml");
ServiceName.send();
}
You can call this function in any event according to your requirements.
Note: The URL is specific to 11.5 version of xMII. You may need to change it accordingly for 12.0.
Regards,
Musarrat
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.