问题
I am trying to generate BIRT report on IBM Worklight for an Android device. For this I am following instructions given in the following article:
Worklight: Generate analytics data and view BIRT reports
The steps I've taken are:
Installed BIRT in Eclipse from the Juno repository: Juno - http://download.eclipse.org/releases/juno
Created a Worklight project with and edited worklight.properties (please find code below)
Already being installed SQL server with databases: "worklight" and "wl_report"
Added the Android environment, Built and Deploy the application and ran the Android application on device. Then I checked the database, it has all tables but there is no data in "app_activity_report" table
Download "module_44_0_DeviceAnalytics" from the Getting Started page, import it into Eclipse, click on the Report design and edit it with the database connection.
No Graph is being generated.
worklight.properties:
wl.db.type=MYSQL
wl.db.url=jdbc:mysql://*.0.0.1:****/worklight
wl.db.username=root
wl.db.password=root
reports.exportRawData=true
wl.reports.db.type=MYSQL
wl.reports.db.url=jdbc:mysql://*.0.0.1:****/wl_report
wl.reports.db.username=root
wl.reports.db.password=root
any help would be highly appreciated.
回答1:
Have you made sure to also update initOptions.js (in yourProject\apps\yourApp\common\js folder) and change connectOnStartup
from "false" to "true"?
Otherwise, the application will not connect to the Worklight Server and no logging to the database (to the app_activity_report table) will take place.
来源:https://stackoverflow.com/questions/16730220/error-on-birt-report-analytics-ibm-worklight