CatiStat get

From Catglobe Wiki
Revision as of 09:40, 11 May 2018 by Nguyenduyan (talk | contribs) (Created page with "Category:Questionnaire_Functions = CatiStat_get = Get CatiStatistic == Syntax == CatiStat_get(array interviewers, number qnaireRid, array startDate, array endDate); ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CatiStat_get

Get CatiStatistic


Syntax

CatiStat_get(array interviewers, number qnaireRid, array startDate, array endDate);

Arguments

array interviewers

number qnaireRid

array startDate

array endDate

Return type

Array of CatiStatistic

Example

Array interviewers = {15620372, 15003004};
number QnaireRid = 15629214;
Array startDate = {2018, 2, 7, 0, 0, 0, 0};
Array endDate = {2018, 5, 10, 0, 0, 0, 0};
Array result = CatiStat_get(interviewers, qnaireRid, startDate, endDate);
print(result);//{CatiStatisticCGO,CatiStatisticCGO}
for(number i = 0; i<result.Count; i++ )
{
	CatiStatisticCGO catiStatistic = result[i];
	print(result[i]);//CatiStatisticCGO
	print(result[i].InterviewerResourceId);//15003004, 15620372
	print(result[i].TotalTime);//95280, 16740
	print(result[i].RealTime);//89294, 16372
	print(result[i].AverageSuccesTime);//1725, 2962
	print(result[i].TotalCallAttempts);	//643, 116
}