19.07.2014 Views

OneSight Administrator Guide

OneSight Administrator Guide

OneSight Administrator Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating a Gauge Report<br />

Passing Arguments to a SQL Query<br />

If you are using an SQL query, you can pass any number of<br />

arguments to the query. This is a two-step process.<br />

1. When specifying the query in the <strong>OneSight</strong> report templates<br />

properties file, include a „?‟ character where the argument<br />

substitutions will occur. For example:<br />

Report5.sql=SELECT PropName, AgentPropertySeq FROM<br />

EmpirixAdmin.tbl_AgentProperty WHERE<br />

(AgentPropertyListID = ?)<br />

2. When invoking the report, specify the appropriate number of<br />

„arg‟ parameters in the URL that will map to the „?‟. For<br />

example:<br />

id=MyReport&arg=16&arg=18, would substitute 16 and<br />

18 for two ? within the query.<br />

Creating a Gauge Report<br />

<strong>OneSight</strong> report templates support gauge reports. Gauges are unique<br />

in that you specify a single value to graph, such as a tachometer as<br />

shown below.<br />

To specify a gauge report, you must first specify the<br />

.datasourceName as SQL. Only SQL results can be represented in a<br />

gauge (this is a Corda limitation). You then specify a<br />

Chapter 14: Configuring Custom Reports 853

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

Saved successfully!

Ooh no, something went wrong!