← Back to team overview

dhis2-devs team mailing list archive

Re: DHIS2 Standard Reports: API ~ CORS

 

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.rowles@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References