CatiStatistic getByInterviewers

From Catglobe Wiki
Jump to: navigation, search

CatiStatistic_getByInterviewers

Get CatiStatistic

Syntax

CatiStatistic_getByInterviewers(array interviewers, number qnaireRid, DateTimestartDate, DateTime endDate);

Arguments

array interviewers

number qnaireRid

DateTime startDate

DateTime endDate

Return type

Array of CatiStatistic

Example

Array interviewers = {15620372, 15003004};
number qnaireRid = 15629214;
DateTime startDate = new DateTime ("2018/2/7");
DateTime endDate = new DateTime ("2018/5/10");
Array result = CatiStatistic_getByInterviewers(interviewers, qnaireRid, startDate, endDate);
print(result);//{CatiStatistic,CatiStatistic}
for(number i = 0; i<result.Count; i++ )
{
	CatiStatistic catiStat = result[i];	
	print(catiStat.InterviewerResourceId);//15003004, 15620372
	print(catiStat.TotalTime);//95280, 16740
	print(catiStat.RealTime);//89294, 16372 
	print(catiStat.AverageSuccessTime);//1725(126460512), 2962 (161290759)
	print(catiStat.TotalCallAttempts);	//643, 116
}