Difference between revisions of "QAS getByUserResourceId"

From Catglobe Wiki
Jump to: navigation, search
Line 2: Line 2:
 

 

  
====QAS_getByUserResourceId====
+
= QAS_getByUserResourceId =
  
Get list of answer sheets for a user.
+
Get list of answer sheets for a user.  
  
'''Syntax'''
+
'''Syntax'''  
  
QAS_getByUserResourceId(userResourceId[, questionnaireResourceId])
+
QAS_getByUserResourceId(userResourceId[, questionnaireResourceId])  
  
'''Arguments'''
+
'''Arguments'''  
  
- userResourceId: is a number expression. It is the user's resource id.
+
- 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).
+
- questionnaireResourceId: is a number expression. It is the questionnaire's resource id (optional).  
  
'''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: QAS_getByUserResourceId(38588899);  
  
ex2: QAS_getByUserResourceId(38588899,38606878);
+
ex2: QAS_getByUserResourceId(38588899,38606878);  
  
'''Availability'''
+
'''Availability'''  
  
 
Version 5.8.1
 
Version 5.8.1
 
__NOTOC__
 
__NOTOC__
<!-- imported from file: 8062.htm-->
 

Revision as of 10:01, 30 September 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: QAS_getByUserResourceId(38588899);

ex2: QAS_getByUserResourceId(38588899,38606878);

Availability

Version 5.8.1