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.

GetQuestion: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Questionnaire_Functions]]
[[Category:Questionnaire_Functions]]

{{HelpFiles}}


====getQuestion====
====getQuestion====


Gets the question object for the specified question label
Gets the answer for the specified question label. This function needs RPQ context


'''Syntax'''
'''Syntax'''
Line 20: Line 20:
'''Examples'''
'''Examples'''


question DomesticAnimal = getQuestion("DomesticAnimal");
//Copy answer from another project questionnaire
 
//DomesticAnimal is the question label of the source questionnaire
 
''number questionnaireRid = 75992;''
 
''string questionnairequalifiedname = Resource_getResourceName(questionnaireRid );''
 
''DomesticAnimal = getQuestion(questionnairequalifiedname + "\\DomesticAnimal");''


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

Latest revision as of 10:19, 7 June 2024



getQuestion

Gets the answer for the specified question label. This function needs RPQ context

Syntax

getQuestion(question_label)

Arguments

question_label: Is the string label of a question

Return type

object

Examples

//Copy answer from another project questionnaire

//DomesticAnimal is the question label of the source questionnaire

number questionnaireRid = 75992;

string questionnairequalifiedname = Resource_getResourceName(questionnaireRid );

DomesticAnimal = getQuestion(questionnairequalifiedname + "\\DomesticAnimal");

Availability

Version 4.8