Flex 3 Dashboard with DYNAMIC XML CHARTS
Yes, you read that right! After much searching and reading, I have FINALLY figured out how to get the pie and bar charts in the Flex 3 Dashboard working with dynamically generated XML fed from a CFC. It took a while and I’m pretty proud of myself for getting it done! It works like a charm - the application reads the values from pre-compiled XML files to give the initial pie or bar chart values. When the page is loaded, it fires off a CFC which generates the drill-down data in XML (using CFXML) from the SQL Server 2000 instance on the web server. The XML files are created with CFXML and CFFILE, writing to a directory with nameconflict=”overwrite” specified. The Flex 3 Dashboard then goes to that directory and pulls the appropriate XML file needed to display the pie or bar chart drill down data. How does the Flex 3 Dashboard know which XML file to load, you ask? Well, I’m passing in the value of the pre-defined drill down XML file as an attribute of the original XML file loaded at run-time. It’s honestly not as hard as I thought it was going to be, but this is my first real application in Flex 3 and I’m pretty happy that it works.
I don’t think I can post the code, but I would be glad to help anyone that asks, if I can.
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.
Comments
Hi bradley,
I am completly new to flex and very new to programming, I came across the flex 3 dashboard and was able to generate xml data fom my as400 server. I am able to see the data in the charts. The problem that I am having is with the drill down. I was wondering if you could point me in the right direcction. Any help is greatly appreciated.
EdgarV
Hi bradley,
thank you for the reply, the problem that I am having with the drill down is that I would like to get the drill down from another xml file, right now it comes from the same xml file and then it distributes the values randomly.
So what I am looking to acomplush is for example you have the first xml file creates the monthly sales, and the second xml file would bring in the values for each day. Not really sure how to tackle that one.
thanks for any advice!!

Hi Bradley, I was wondering if you had a bit of time to help explain how you did this…I puzzled trying to get this working myself.