19.07.2014 Views

OneSight Administrator Guide

OneSight Administrator Guide

OneSight Administrator Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Report Templates Properties File<br />

.template – The appearance type, which corresponds to a<br />

PopChart appearance file. Default appearance files for common<br />

types (bar, line) are provided within <strong>OneSight</strong>, or you can use a<br />

custom appearance file. This requires assistance from the<br />

<strong>OneSight</strong> Services Team or a Corda builder license.<br />

.outputType – The output type. Valid output types include FLASH<br />

(the default), PDF, and TABLE (an HTML table).<br />

Editing the Report Templates Properties File<br />

The reportTemplates_en.properties file can be edited manually within<br />

the <strong>OneSight</strong> properties directory, or it can be edited within the<br />

<strong>OneSight</strong> console using the<br />

http://hostname:8080/support/ReportTemplateEdit.jsp file. When you<br />

invoke http://hostname:8080/support/ReportTemplateEdit.jsp, it loads in<br />

the properties file. After you make the necessary edits, click the<br />

Save button. Saved changes are effective immediately.<br />

About Custom Report Data Sources<br />

A report data source can be an SQL query, a CSV or XML file, or an<br />

HTML table within an html page. Corda makes it very easy to<br />

import data from csv, html, and xml files. The files must follow the<br />

prototypical table format. Examples are provided within the<br />

PopChart\chart_root\reportTemplates\data subdirectory. In this<br />

scenario, you need to update the file using an external means such<br />

as a scheduled <strong>OneSight</strong> action).<br />

For an SQL query, you also need to provide the connection<br />

parameters. The samples in the report templates include a report<br />

that connects to the <strong>OneSight</strong> database and reads alerts. Any<br />

accessible DB cab be used. In fact, the SQL datasource is database<br />

agnostic, so you need to be aware of security issues surrounding<br />

custom reports.<br />

852 <strong>OneSight</strong> <strong>Administrator</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!