Hi Greg, I would recommend handling this on your side (styling, formatting, etc). The "generateHtmlReport.action" part comes from struts and is internal to DHIS 2 and is not documented or guaranteed to remain stable.
regards, Lars On Wed, Jun 10, 2015 at 10:37 AM, Morten Olav Hansen <morte...@gmail.com> wrote: > Hi Greg > > So you want to get the html, then rendering it in a external app? the > problem I see with that, is that the queries inside that HTML report will > not have CORS enabled, will they? if it was just html, there should be no > problems.. but I assume you are using some kind of XHR to fetch the data, > not sure how well that would work. > > -- > Morten > > On Mon, Jun 8, 2015 at 4:21 PM, Greg Rowles <greg.row...@gmail.com> wrote: > >> Hi Devs >> >> Is there any way to access a standard HTML report using some type of >> cross origin handler? >> >> Accessing a report over API (e.g. ...api/reports/AbCdEfGH123/data.html) >> only presents the custom code which is obviously handled better >> by generateHtmlReport.action. Is there perhaps an alternative report >> handler or should we look at developing one to meet our needs? >> >> Thanks, >> Greg >> >> *Health Information Systems Program - South Africa* >> *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - - >> - * >> Mobile : 073 246 2992 >> Landline: 021 554 3130 >> Fax: 086 733 8432 >> Skype: gregory_rowles >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~dhis2-devs >> Post to : dhis2-devs@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~dhis2-devs >> More help : https://help.launchpad.net/ListHelp >> >> > > _______________________________________________ > Mailing list: https://launchpad.net/~dhis2-devs > Post to : dhis2-devs@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dhis2-devs > More help : https://help.launchpad.net/ListHelp > > -- Lars Helge Øverland Lead developer, DHIS 2 <http://www.dhis2.org/> University of Oslo Skype: larshelgeoverland http://www.dhis2.org <https://www.dhis2.org>
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp