DatStat Illume 4.5 SDK Class Reference

WebServiceContext.RunQuery Method 

Executes and returns the results of a query to the given TextWriter stream.

public void RunQuery(
   TextWriter textWriter,
   String surveyName,
   String queryName,
   SDK_ResultsType outputType,
   Boolean includeLabels,
   String[] drilldowns
);

Parameters

textWriter
The output stream that will accept the resutls.
surveyName
The name of the survey.
queryName
The name of the query to run.
outputType
SDK_ResultsType that is the type of results that will be created (Tab-Delimited, HTML, XML, etc.).
includeLabels
Boolean value that is useful for output types SDK_ResultsType.HTML, SDK_ResultsType.XML, and SDK_ResultsType.TabDelimited. This value controls whether or not the labels for values will be written to the output stream.
drilldowns
String array of specific drill-down criteria.

Remarks

An string array can also be supplied to specify drill-down criteria. A drilldown (basically a SQL where-clause) must be of the form “[variableName][=,!=,>,>=,<,<=,~,!~][value]” where '~' means 'contains'. Multiple conditions may be specified and are always “AND”ed.

If there is an error formulating or running the query, an exception will be thrown with an appropriate error message.

See Also

WebServiceContext Class | DatStat.SDK.WebServiceWrappers Namespace