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

Questionnaire getCountQASs

From Catglobe Wiki
Revision as of 08:48, 7 March 2011 by Catglobe (talk | contribs) (jrfconvert import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



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