Difference between revisions of "Questionnaire getCountQASs"
(jrfconvert import) |
|||
Line 1: | Line 1: | ||
− | [[Category: | + | [[Category:Questionnaire_Functions]] |
| | ||
Revision as of 08:51, 22 March 2011
Questionnaire_getCountQASs
- This script is used to get the number of QASs which belong to a specific group of a specific questionnaire
Syntax
number Questionnaire_getCountQASs(number projectQuestionnaireResourceId, number groupResourceId, bool includeTest [,bool completed] [, number status][, array startPeriod, array endPeriod])
Arguments
– projectQuestionnaireResourceId: the project questionnaire resource id
– groupResouceId: the group resource id, this parameter is required but I can use the constant called GROUP_RESOURCE_ID_ANY (value = -1) in case I have no group is used.
– includeTest: Are the test QASs counted?
– completed: Are the completed QASs counted?
– status: the status of QASs.
– startPeriod and endPeriod: the period that those QASs is completed (QAS's end_date)
Return type
Number
Example
array end = getCurrentDateTime();array start = {2005,6,15,0,0,0,0,33,40};
string a = Questionnaire_getCountQASs(654321,123456,false,true,1,start,end);
With :false : Not include testtrue : rpq completed1 : rpq status normal
Note
If the completed parameter was false, then the startPeriod and endPeriod parameters will be ignored.
Availability
Version 5.8