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.

CreateResourceProjectQuestionnaire: Difference between revisions

From Catglobe Wiki
jrfconvert import
 
No edit summary
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
[OBSOLETE - Please use [[QAS_class|new QAS()]]. More detail at [[ConversionMethods|ConversionMethods]]]

=== createResourceProjectQuestionnaire ===
 
====createResourceProjectQuestionnaire====


Creates a questionnaire answer sheet for a questionnaire. Returns the primary key of the new (or existing) questionnaire answer sheet.
Creates a questionnaire answer sheet for a questionnaire. Returns the primary key of the new (or existing) questionnaire answer sheet.


'''Syntax'''
=== Syntax ===


createResourceProjectQuestionnaire(''pq_id'' [, ''assignCurrentUser'' [, ''useExisting'']])
createResourceProjectQuestionnaire(''pq_id'' [, ''assignCurrentUser'' [, ''useExisting'']])


'''Arguments'''
=== Arguments ===


''pq_id'': Is a numeric (non-decimal) expression.
''pq_id'': Is a numeric (non-decimal) expression.


''assignCurrentUser'': Is a bool  expression. If it has a true value and the third parameter (useExisting) is not specified, the user property of the new questionnaire answer sheet is assigned with the current user.
''assignCurrentUser'': Is a bool  expression. If it has a true value and the third parameter (useExisting) is not specified, the user property of the new questionnaire answer sheet is assigned with the current user.


useExisting: Is a bool expression. If it is a true condition, the newest (not deleted) questionnaire answer sheet belonging to the specified questionnaire and the current user is returned. Otherwise, a new resource project questionnaire is returned.When this parameter has a true value, the second parameter (assignCurrentResource) has no meaning.
useExisting: Is a bool expression. If it is a true condition, the newest (not deleted) questionnaire answer sheet belonging to the specified questionnaire and the current user is returned. Otherwise, a new resource project questionnaire is returned.When this parameter has a true value, the second parameter (assignCurrentResource) has no meaning.


'''Return type'''
=== Return type ===


number
number


'''Examples'''
=== Examples ===


number a = createResourceProjectQuestionnaire(1104);
number a = createResourceProjectQuestionnaire(1104);
Line 30: Line 28:
number a = createResourceProjectQuestionnaire(1104, false);
number a = createResourceProjectQuestionnaire(1104, false);


and different from the statement below :*/
and different from the statement below :*/


number b = createResourceProjectQuestionnaire(1104, true);
number b = createResourceProjectQuestionnaire(1104, true);
Line 42: Line 40:
<nowiki>*/</nowiki>
<nowiki>*/</nowiki>


'''Availability'''
=== Availability ===


Version 5.0
Version 5.0 __NOTOC__
__NOTOC__
[[Category:Questionnaire_Functions]]
<!-- imported from file: 581.htm-->

Latest revision as of 02:24, 13 May 2022

[OBSOLETE - Please use new QAS(). More detail at ConversionMethods]

createResourceProjectQuestionnaire

Creates a questionnaire answer sheet for a questionnaire. Returns the primary key of the new (or existing) questionnaire answer sheet.

Syntax

createResourceProjectQuestionnaire(pq_id [, assignCurrentUser [, useExisting]])

Arguments

pq_id: Is a numeric (non-decimal) expression.

assignCurrentUser: Is a bool  expression. If it has a true value and the third parameter (useExisting) is not specified, the user property of the new questionnaire answer sheet is assigned with the current user.

useExisting: Is a bool expression. If it is a true condition, the newest (not deleted) questionnaire answer sheet belonging to the specified questionnaire and the current user is returned. Otherwise, a new resource project questionnaire is returned.When this parameter has a true value, the second parameter (assignCurrentResource) has no meaning.

Return type

number

Examples

number a = createResourceProjectQuestionnaire(1104);

/*the above statement is similar to the following one:

number a = createResourceProjectQuestionnaire(1104, false);

and different from the statement below :*/

number b = createResourceProjectQuestionnaire(1104, true);

number c = createResourceProjectQuestionnaire(1104, true, true);

/*equals to:

number c = createResourceProjectQuestionnaire(1104, false, true);

*/

Availability

Version 5.0