The Engines.ReportingServices object provides access Microsoft SQL Server Reporting Services APIs to retrieve reports in XML format.
The following example prints out the data source in the Debug Window.
// global variables
var g_service;
var g_report;
// configure globals and interface settings for this Klip on first run
function onLoad() {
g_service = Engines.ReportingServices.createService(
"reportingservices.dyndns.org:2020");
//g_service.secure = true;
//g_service.setVirtualDirectory( "ReportServer" );
// load a report based on the report's deployed project path
g_report = g_service.loadReport(
"/AdventureWorks Sample Reports/Territory Sales Drilldown" );
}
function onRefresh() {
// run the report
if (g_report.run ()) {
var xmlsource = g_report.getXML();
trace( xmlsource );
// process the resulting XML
Engines.Data.process( g_report.getXML() );
return true;
}
else {
traceln( g_service.getLastError() );
}
return false;
}
| Properties Summary | |
boolean |
secure
|
| Function Summary | |
function
|
createService( <String> url )
|
function
|
getLastError()
|
function
|
getXML()
|
function
|
loadReport( path )
|
function
|
run()
|
function
|
setVirtualDirectory( reportServer )
|
| Properties Detail |
secure
boolean secure
Set to true to use SSL/TLS.
| Function Detail |
createService
function createService( <String> url )
-
Parameters:
url - name of the server and port (default port is 80)
getLastError
function getLastError()
getXML
function getXML()
loadReport
function loadReport( path )
-
Parameters:
String - path deployed project path
run
function run()
-
Returns:
-
true on success; otherwise false
setVirtualDirectory
function setVirtualDirectory( reportServer )
This directory is based on your IIS settings.
-
Parameters:
String - reportServer name of the virtual directory to set as a report server
|
Klipfolio Dashboard 5 API | ||||||||
| PREV OBJECT NEXT OBJECT | FRAMES NO FRAMES | ||||||||
| SUMMARY: PROPERTY | FUNCTION | DETAIL: PROPERTY | FUNCTION | ||||||||
© 2009 Klipfolio Inc. All Rights Reserved.