dsw-reports
Addon for DeepSee Web which provides online reports and PDF emailing reports from InterSystems DeepSee dashboards
Installing
- Install last version PhantomJS
- Install last versions MDX2JSON and DeepSeeWeb.
- Import classes from repo (src/cls/)
- Move folder “reports” from repo (src/web/) to DeepSeeWeb application root directory.
- Configure DSW.Reports:
- Open class DSW.Reports.Task and configure parameters.
- Set parameter HEADLESS. It’s path to PhantomJS binary, or “phantomjs” command if binaries included to PATH.
- Set parameter DSWAPPLICATION. It’s name of DeepSeeWeb application.
- Set parameter SCRIPTPATH. It’s path to rasterize.js file. Default:
{DSWApp}/reports/rasterize/rasterize.js
.
- Set parameter HOSTNAME. It’s hostname of your server.
- Configure SMTP server:
server - your SMTP server hostname.
port - port for outgoing messages on your SMTP server.
username and password - your authentication data.
sender - your email address.
SSLConfig - Optional. Set name of your SSL Configuration.
do ##class(DSW.Report.EmailSender).setConfig(server, port, username, password, sender, SSLConfig)
- Manage recipients:
do ##class(DSW.Report.EmailSender).addRecipient(email)
or
do ##class(DSW.Report.EmailSender).deleteRecipient(email)
.
- Run report’s task:
url - link to your report.
reportname - name of your report.
do ##class(DSW.Report.Task).Run(url, reportname)
Run example
- Import example from repo (example/).
- Run example’s setup.
do ##class(RF.KHAB.Utils).Setup()
- Check example:
<yourhost:port>/dsw/reports/example/index.html
- Run report’s task:
do ##class(DSW.Report.Task).Run("<yourhost:port>/dsw/reports/example/index.html", "example")
FAQ
Running PhantomJS on Linux VPS without X Server and Desktop Enviroment.
Witout X Server and Desktop Enviroment on Linux servers PhantomJS produces a next error:
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
To fix the problem, please install xvfb.