DatStat Illume 4.5 SDK Class Reference

HookContext.MakeSubmission Method 

Makes a submission in the survey named surveyName using the variable/response pairs given in dataHash.

public bool MakeSubmission(
   String surveyName,
   Hashtable dataHash,
   Boolean testData
);

Parameters

surveyName
The name of the survey.
dataHash
A Hashtable providing the mapping of variable names to responses for the submission.
testData
A value indicating whether the data for the submission is to be marked as test data.

Return Value

Returns false if the type of a response is not valid for a named variable, or if the requested survey cannot be found, has not been published, or the method is called during designer preview. Otherwise, true is returned.

Remarks

The Hashtable dataHash will be used to set the responses for the survey submission. This Hashtable provides the mapping of variable ‘friendly’ names to responses. Variable names that are not valid for the requested survey are ignored. If the type of a response object is not valid for a variable that exists in the requested survey, this method will return false. This method will also return false if the requested survey cannot be found, has not been published, or this method is being called during designer preview. The DATSTAT.STARTTIME and DATSTAT.BROWSER variables will be populated with the same values as those for the current survey context. If the parameter testData is set to true, the data submission will be marked as test data.

See Also

HookContext Class | DatStat.Collector Namespace