Difference between revisions of "QuestionnaireStatistics class"
Nguyenduyan (talk | contribs) (Tag: visualeditor-switched) |
Nguyenduyan (talk | contribs) (Tag: visualeditor-switched) |
||
Line 96: | Line 96: | ||
<source lang="javascript"> | <source lang="javascript"> | ||
//get number of read email (via tracking link) | //get number of read email (via tracking link) | ||
− | QuestionnaireStatistics | + | array aQnaireRId = {12813}; |
− | print( | + | QuestionnaireStatistics qs = new QuestionnaireStatistics(aQnaireRId); |
− | print( | + | print(qs.NumberOfEmails(12813));//22 |
+ | print(qs.NumberOfReadEmails(12813));//11 | ||
+ | print(qs.NumberOfReadEmailsSum(12813));//5 | ||
</source> | </source> |
Revision as of 11:00, 22 May 2017
QuestionnaireStatistics
The questionnaire statistics collection. To view information like how big a sample is used, how large is the active samples etc.
Constructors
- (array qids "An array of questionnaire resource ids. Invalid ids are ignored. Deleted ids are ok. Must have Read permission.") - Constructor to take many questionnaires
Methods
- string AverageInterviewSucceededTime(int QuestionnaireResourceId "The Id to get the info from") - Get count of AverageInterviewSucceededTime
- number EstimatedTime(int QuestionnaireResourceId "The Id to get the info from") - Get estimated time to complete based on current time estimate of the pq
- number EstimatedTotalTime(int QuestionnaireResourceId "The Id to get the info from") - Get sum of estimated time to complete based on current time estimate of the pq
- DateTime FirstInterview(int QuestionnaireResourceId "The Id to get the info from") - Get start date of the first interview
- DateTime LatestInterview(int QuestionnaireResourceId "The Id to get the info from") - Get end date of the latest interview
- int NonSampleRules(int QuestionnaireResourceId "The Id to get the info from") - Get count of NonSampleRules
- int NonSampleRulesWithData(int QuestionnaireResourceId "The Id to get the info from") - Get count of NonSampleRulesWithData
- int NonSampleRulesWithoutData(int QuestionnaireResourceId "The Id to get the info from") - Get count of NonSampleRulesWithoutData
- int NumberOfActiveNotContactedRpq(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfActiveNotContactedRpq
- int NumberOfActiveSample(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfActiveSample
- int NumberOfAvailable(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfAvailable
- int NumberOfAvailableActive(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfAvailableActive
- int NumberOfCompleted(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfCompleted
- int NumberOfCompletedToday(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfCompletedToday
- int NumberOfCompletedYesterday(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfCompletedYesterday
- int NumberOfEmails(int QuestionnaireResourceId "The Id to get the info from") - Get number of emails sent
- int NumberOfInterviewSucceeded(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfInterviewSucceeded
- int NumberOfInterviewSucceededToday(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfInterviewSucceededToday
- int NumberOfInterviewSucceededYesterday(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfInterviewSucceededYesterday
- int NumberOfNotContactedRpq(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfNotContactedRpq
- int NumberOfPartly(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfPartly
- int NumberOfReadEmails(int QuestionnaireResourceId "The Id to get the info from") - Get number of qas that was registered as read or started
- int NumberOfReadEmailsSum(int QuestionnaireResourceId "The Id to get the info from") - Get number of qas that was registered as read or started as the sum of times they were opened
- int NumberOfSample(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfSample
- int NumberOfTestLink(int QuestionnaireResourceId "The Id to get the info from") - Get count of NumberOfTestLink
- int TargetReachedCount(int QuestionnaireResourceId "The Id to get the info from") - Get count of TargetReachedCount
- string ToString() - The string representation of the object.
Properties
- string ObjectTypeName { get; } - The name of the type of object.
- TypeInformation TypeInformation { get; } - Get information about this class.
Examples
//get number of read email (via tracking link)
array aQnaireRId = {12813};
QuestionnaireStatistics qs = new QuestionnaireStatistics(aQnaireRId);
print(qs.NumberOfEmails(12813));//22
print(qs.NumberOfReadEmails(12813));//11
print(qs.NumberOfReadEmailsSum(12813));//5