I already installed JasperReports Server 6.4.3 with Jaspersoft Studio 6.5.1 . I was able to create and generate report using JSON file input in Jaspersoft Studio. But I can't seem get it right when I tried to do it in collaboration with JasperReports Server.
I have prepared these things :
- Try JDBC data source and publish the related report to test if the report works , and it did.
- Upload the jrxml file to JasperReports Server
- Get the JSON dummy data in file and store in localhost
Initially , I was going to send and retrieve data via API. So, in my initial understanding , the flow is like :
Jaspersoft Studio -> JasperReports Server <-> API
The JDBC Data Source works well but I can't seem to get it right with JSON type , so I thought that the JSON flow should be the same with JDBC , I just have to adjust JSON Data Source's settings with JDBC Data Source's settings, since I have the file. But whenever I try to save a new JSON Data Source in JasperReports Server , it always requires Query field to be filled in (in my understanding, it shouldn't be any query since the file already contains final data). But when I put any wild character, it success on creating JSON Data Source but always failed to generate report. [Error text , like : Please contact Administrator]
Is there something that I miss or lack ?
Thanks
ADDITIONAL QUESTION : is it required to fill Query column when we want to add a new JSON Data Source ?
ADDITIONAL INFO : I was able to generate the report as I want it , by creating jrxml and data adapter file at Jaspersoft Studio , and then upload the data adapter and configure the jrxml so it will point the required data adapter. In my simple mind, this requires a data adapter for a jrxml file, that means if we have 1000 report design , we should prepare 1000 data adapter. I also concerned session's request or key to identify which request is appropriate for each report's result (I don't know if this is necessary). Is this the best idea ? or , is there any better idea ?