Friday, 12 February 2010

As easy as "Pie"


       In the same manner as report integration, to view a Next flash chart in you application you have to do three things :
  • start a local web server
  • write just a few lines of code which will create a json file :
ChartRunner runner = new ChartRunner();
runner.setChart(chart);
runner.setConnection(connection);
runner.setQueryTimeout(queryTimeout);
runner.setParameterValues(parameterValues);
OutputStream os = new FileOutputStream(webRoot +
                  File.separatorChar + "data.json");
boolean result = runner.run(os);
os.close(); 
  • open the url :
openUrl("http://localhost:" + webServerPort + "/chart.html?ofc=data.json");
And that is all. 

1 comment:

  1. IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents.

    IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation.

    corporate training in chennai corporate training in chennai

    corporate training companies in india corporate training companies in india

    corporate training companies in chennai corporate training companies in chennai

    I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai

    ReplyDelete