cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Flex Pie Chart

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Musarrat,

Thanx for the info. But can you be a bit clear on how to call a query template as webservice.

Your answer did gave me an idea of it.

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanx a lot Musarat.

I appreciate your time and efforts

Former Member
0 Kudos

For security reasons, I would strongly encourage not passing credentials in the URL. Very easy to capture/hack. If you must do this, make certain that you are using the HTTPS protocol.

Answers (0)