More actions
No edit summary |
Cg huyphong (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
====getQuestion==== | ====getQuestion==== | ||
Gets the | 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''' |
Revision as of 04:11, 29 December 2011
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