Reports do not show up
antapos opened this issue · 2 comments
No BIRT report can be shown in the UI of abs-webapp.
Steps to reproduce:
- follow the instructions in the README to checkout main project and git submodules
- setup the postgres database using the db properties shown in abs-webapp/src/main/resources/application.properties
- run the web app using ./gradlew tomcatRun
- open a chrome web browser and open the devtools and the network tab
- login using admin/admin and visit the URL: http://localhost:8080/abs-webapp/#/ds/hr.root.employee/edit/13
- press the 'Print CV' button
- in the network tab of Chrome devtools it shows an error like the following:
HTTP 404 while trying to perform HTTP GET on URL:
http://localhost:8080/birt/frameset?__report=report/Employee.rptdesign&DBName=jdbc:postgresql://localhost:5432/axelor-business-suite&UserName=axelor&Password=*****&__format=pdf&Locale=en&EmployeeId=13
First , I installed a tomcat 7.x . then ran ./gradlew war
from your project. copied the abs-webappxxx.war from buld/lib to my /opt/tomcat7/webapps/abs-webapp.war
. then downloaded the birt-4.4.1 runtime engine. After unzipping it, I copied the birt.war into /opt/tomcat7/webapps
also. I also copied the jdbc driver from postgresql to /opt/tomcat7/lib
.
And then, here is the funny part, I was playing with
http://localhost:8080/abs-webapp/#/ds/sc.root.sale.customers/edit/14
Print Informations button, so I had to copy the file Partner.rptdesign
, from my source code to the birt/report`` directory Birt Report Engine 4.4.1 download link
http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-4_4_1-201409161320/birt-runtime-4_4_1-20140916.zip&mirror_id=576 ```
TODO: Play with the application.properties inside abs-webapp to relocate the reports. Secondly I wonder why axelor gradle build doesn't copy the reports from resource/reports, I had to copy it manually.
Hope this guide you to something, I am still playing around with Axelor adk.
Now (master branch), the application can manage embedded and external Birt engine.
The objective is to simplify the application deployment.
A new parameter has been added in the applications.properties file (axelor.report.use.embedded.engine), to select the report engine. Default is to use embedded Birt engine.
With embedded Birt, there is nothing to do.
Regards