QAS getByUserResourceId

From Catglobe Wiki
Revision as of 10:02, 7 March 2011 by 127.0.0.1 (talk | contribs) (jrfconvert import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



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