Quantcast
Channel: Pentaho Community Forums - BI Platform
Viewing all articles
Browse latest Browse all 2893

Ajax report using xaction

$
0
0
My goal is to write an html page that accesses data from pentaho via an ajax call to an xaction and then to render the response using some js charting library (highcharts, for example). I would like to build a folder structure in the pentaho-solutions directory that allows me to share code across common reports (see below).

I have an xaction working that will retrieve data from Pentaho and return it in json format. All I need to do is figure out where these html and supporting files can live and be referenced from. My preference is to have them live next to, or near the xaction files.

If this isn't the best approach to building these types of reports, I'm all ears. I've done research and haven't found anything that solves my problem.

Some url like this, maybe?
http://mydomain.com/pentaho/solution...foo&param2=bar

Pentaho-solutions
..mydirectory
….reports
……reportname1 (or any other report name)
……..index.html (the html page that the xaction would redirect to)
……..data.xaction (the xaction that returns data for the ajax call)
……libs (for common files used amongst all xaction reports)
……..jquery.js
……..highcharts.js (and any other common charting libraries)
……..shared.js (some common js code)
……..shared.css (shared styles so that all reports look the same)

Viewing all articles
Browse latest Browse all 2893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>