Reporting Dashboard - Writing A Report

The basic XML-style syntax of a report is presented below:

Example

<Reporting> <ReportTitle></ReportTitle> <ReportHeader></ReportHeader> <ReportFooter></ReportFooter> <AggregateReports></AggregateReports> <Parameters> <Queue></Queue> <SkillGroup></SkillGroup> <User></User> <CallType></CallType> <ReceivedBy></ReceivedBy> <Status></Status> <Priority></Priority> <Key1></Key1> <Key2></Key2> <Key3></Key3> </Parameters> <Report> <Title></Title> <Query></Query> <Columns></Columns> </Report> </Reporting>

The elements of the report are described below:

* Because the report is based on an XML document, you must make sure that the HTML is valid XML. Alternatively, you can enclose your text within a CDATA section:

Example

<ReportTitle>My Report<br>My Company</ReportTitle> This is invalid <ReportTitle>My Report<br />My Company</ReportTitle> This is valid <ReportTitle><![CDATA[My Report<br/>My Company]]</ReportTitle> This is valid

** If a value is not set, the system will apply the default value of false.

Example: This example shows how to construct a report showing the Current Calls for the Help Desk Queue.

Example

<Reporting> <ReportTitle>Current Calls For Help Desk Queue</ReportTitle> <ReportHeader></ReportHeader> <ReportFooter></ReportFooter> <Parameters> <Queue></Queue> <SkillGroup></SkillGroup> <User></User> <CallType></CallType> <ReceivedBy></ReceivedBy> <Status></Status> <Priority></Priority> <Key1></Key1> <Key2></Key2> <Key3></Key3> </Parameters> <Report> <Title>Current Calls</Title> <Totals></Totals> <Query>SELECT CallID, Subject FROM tbl_Calls WHERE QueueID = 1 AND CallStatusID IN (1, 2, 4, 7)</Query> <Columns></Columns> </Report> </Reporting>

See Also

Overview
Passing Parameters
Specifying a Date Range
Customizing Columns
Adding Hyperlinks
Displaying Multiple Reports