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.

QAS getByUserResourceIds: Difference between revisions

From Catglobe Wiki
Created page with "= QAS_getByUserResourceIds = Get a list of qas by the specified users and questionnaire. '''Syntax''' QAS_getByUserResourceId(array userResourceIds, number questionnaireR..."
 
No edit summary
Line 29: Line 29:
}
}
</source>
</source>
'''Availability'''


Version 5.8.1 __NOTOC__


[[Category:Questionnaire_Functions]]
[[Category:Questionnaire_Functions]]

Revision as of 08:29, 4 September 2019

QAS_getByUserResourceIds

Get a list of qas by the specified users and questionnaire.

Syntax

QAS_getByUserResourceId(array userResourceIds, number questionnaireResourceId)

Arguments

- userResourceIds: array of user's resource id.

- questionnaireResourceId: is a number expression. It is the questionnaire's resource id

Return value

array of QAS {QAS,QAS,QAS...} which have been assigned to the specific users on that qnaire. If no answer sheets exists then it will return an empty array

Example:

array userRId = {};
number qnaireRId = ;

array a = QAS_getByUserResourceIds(userRId, qnaireRId);
for(i for 0; a.Count)
{
	print(a[i].Id);
}