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.

QAS getByUserResourceId: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
No edit summary
Line 17: Line 17:
'''Return value'''  
'''Return value'''  


<nowiki>an array of answer sheet objects {{QAS_1},{QAS_2},...) which have been assigned to the specific user. If no answer sheets exists then it will return an empty array.</nowiki>  
<nowiki>an array of answer sheet objects {{QAS_1},{QAS_2},...} which have been assigned to the specific user. If no answer sheets exists then it will return an empty array.</nowiki>  


'''Example:'''  
'''Example:'''  


ex1: QAS_getByUserResourceId(38588899);
ex1 :


ex2: QAS_getByUserResourceId(38588899,38606878);  
array qas_list = QAS_getByUserResourceId(38588899);
 
print(qas_list);
 
ex2:  
 
array qas_list = QAS_getByUserResourceId(38588899,38606878);
 
print(qas_list);


'''Availability'''  
'''Availability'''  

Revision as of 07:57, 29 December 2011



QAS_getByUserResourceId

Get list of answer sheets for a user.

Syntax

QAS_getByUserResourceId(userResourceId[, questionnaireResourceId])

Arguments

- userResourceId: is a number expression. It is the user's resource id.

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

Return value

an array of answer sheet objects {{QAS_1},{QAS_2},...} which have been assigned to the specific user. If no answer sheets exists then it will return an empty array.

Example:

ex1 :

array qas_list = QAS_getByUserResourceId(38588899);

print(qas_list);

ex2:

array qas_list = QAS_getByUserResourceId(38588899,38606878);

print(qas_list);

Availability

Version 5.8.1