Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

CatiStat get: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
Created page with "Category:Questionnaire_Functions = CatiStat_get = Get CatiStatistic == Syntax == CatiStat_get(array interviewers, number qnaireRid, array startDate, array endDate); ==..."
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
#REDIRECT [[CatiStatistic_getByInterviewers]]
[[Category:Questionnaire_Functions]]
[[Category:Questionnaire_Functions]]
= CatiStat_get =
= CatiStat_get =
Get CatiStatistic
CatiStat_get replace by CatiStatistic_getByInterviewers
 


Get [[CatiStatistic class|CatiStatistic]]
== Syntax ==
== Syntax ==


Line 19: Line 20:


== Return type ==
== Return type ==
Array of CatiStatistic
Array of [[CatiStatistic class|CatiStatistic]]


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

Latest revision as of 02:20, 28 February 2019

CatiStat_get

CatiStat_get replace by CatiStatistic_getByInterviewers

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);//{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.AverageSuccesTime);//1725, 2962
	print(catiStat.TotalCallAttempts);	//643, 116
}