-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTSAgentListReportService.cfc
43 lines (35 loc) · 1.27 KB
/
TSAgentListReportService.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!---
BlankReportService.cfc
iOffice 3.0 | Copyright (c) 2011 Indiana University and Jason Baumgartner
Description: ***
***insert into config table
--->
<cfcomponent extends="AbstractReportService">
<cffunction name="getReportServiceType" access="package" returntype="ReportServiceType">
<cfscript>
reportServiceType = createObject("component", "ReportServiceType");
reportServiceType.setID("TSAgentListReportService");
reportServiceType.setReportGroup("TS Reports");
reportServiceType.setReportName("Agent Listing");
reportServiceType.setReportDesc("A listing of agents used by the university");
reportServiceType.setStatistical(true);
reportServiceType.setOutputXLS(true);
</cfscript>
<cfreturn reportServiceType>
</cffunction>
<cffunction name="getDataset" access="private" returntype="string">
<cfargument name="reportObject" type="ReportObject" required="true">
<cfargument name="options" type="array" required="true">
<cfargument name="username" type="string" required="true">
<cfargument name="password" type="string" required="true">
<cfquery name="dataQuery">
SELECT *
FROM [viewTSAgentList]
FOR XML PATH
</cfquery>
<cfscript>
content = getXMLFromQuery(dataQuery);
</cfscript>
<cfreturn content>
</cffunction>
</cfcomponent>