JasperServer usa REST para ejecutar un informe con la fuente de datos especificada en tiempo de ejecución

I have no problem executing a report on JasperServer using the RESTful api when the report unit has data source predefined.

What need to do though is allow my customers to select what database they want to run the report against when they are getting ready to execute a report. I assumed that when I make the PUT request to run the report I could simply throw the data source resource descriptor in the ReportUnit resource descriptor passed in the PUT but it doesn't seem to work.

I even went as far as to pull the resource descritor for the ReportUnit when it had the data source predfined. Tested that passing that resource descritor in the PUT worked. Then removed the predifiend data source and tried executing the report again using the exact resource descriptor I pulled previously and it would not work.

¿Es esto posible?

preguntado el 09 de marzo de 12 a las 16:03

1 Respuestas

I may be wrong, without any much reading, I think you can create data source and domain via resource services.

To update the report file using the resource service, you may have to change the domainQuery node.

I had pulled out the jrxml for my json based report file and it looked something like this:

<resourceDescriptor name="domainQuery.xml" wsType="xml" uriString="/adhoc/topics/myjsonposts_files/domainQuery.xml" isNew="false">

Hope this will help you find your solution.

respondido 24 nov., 15:11

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.