Difference between revisions of "GetQuestionProperties"
(Created page with "==== getQuestionProperties<br/> ==== Return value property of question. '''Syntax''' getQuestionProperties(question_name); '''Arguments''' question_name: Is a name of que...") |
|||
Line 13: | Line 13: | ||
'''Return type''' | '''Return type''' | ||
− | + | array of QuestionProperty object. | |
− | |||
− | |||
− | |||
− | |||
+ | '''Examples:''' | ||
+ | <div>Code:</div><div><br/></div><div>setRPQId(370222122);</div><div>array listOfQuestionProperty = getQuestionProperties("Q6_Awareness");</div><div><br/></div><div>for(number i = 0; i < listOfQuestionProperty.Count; i++)</div><div>{</div><div> QuestionProperty qp = listOfQuestionProperty[i];</div><div> print("------" + i.ToString() + "-----");</div><div> //</div><div><br/></div><div> print("Id: " + qp.Id);</div><div> print("QuestionID: " + qp.QuestionID);</div><div> print("QuestionPropertyType: " + qp.QuestionPropertyType);</div><div> print("QuestionPropertyTypeAsString: " + qp.QuestionPropertyTypeAsString);</div><div> print("Value: " + qp.Value);</div><div>}</div><div><br/></div><div>Result :</div><div><pre style="font-family:monospace,fixed">------0----- | ||
+ | Id: 93490 | ||
+ | QuestionID: 1489 | ||
+ | QuestionPropertyType: 65 | ||
+ | QuestionPropertyTypeAsString: AnswerOptionColumns | ||
+ | Value: 4 | ||
+ | ------1----- | ||
+ | Id: 5849 | ||
+ | QuestionID: 1489 | ||
+ | QuestionPropertyType: 3 | ||
+ | QuestionPropertyTypeAsString: RotateAnswerOptions | ||
+ | Value: [1,2,34,3,35,36,4,5,6,7,37,8,9,10,11,12,13,14,15,16,17,18,19,20,21,38,22,23,24,25,39,26,27,28,33,29,30] | ||
+ | ------2----- | ||
+ | Id: 5850 | ||
+ | QuestionID: 1489 | ||
+ | QuestionPropertyType: 7 | ||
+ | QuestionPropertyTypeAsString: NoMulti | ||
+ | Value: [32]</pre></div> | ||
'''Availability''' | '''Availability''' | ||
Version 5.8 | Version 5.8 |
Revision as of 04:54, 20 June 2015
getQuestionProperties
Return value property of question.
Syntax
getQuestionProperties(question_name);
Arguments
question_name: Is a name of question.
Return type
array of QuestionProperty object.
Examples:
Code:
setRPQId(370222122);
array listOfQuestionProperty = getQuestionProperties("Q6_Awareness");
for(number i = 0; i < listOfQuestionProperty.Count; i++)
{
QuestionProperty qp = listOfQuestionProperty[i];
print("------" + i.ToString() + "-----");
//
print("Id: " + qp.Id);
print("QuestionID: " + qp.QuestionID);
print("QuestionPropertyType: " + qp.QuestionPropertyType);
print("QuestionPropertyTypeAsString: " + qp.QuestionPropertyTypeAsString);
print("Value: " + qp.Value);
}
Result :
------0----- Id: 93490 QuestionID: 1489 QuestionPropertyType: 65 QuestionPropertyTypeAsString: AnswerOptionColumns Value: 4 ------1----- Id: 5849 QuestionID: 1489 QuestionPropertyType: 3 QuestionPropertyTypeAsString: RotateAnswerOptions Value: [1,2,34,3,35,36,4,5,6,7,37,8,9,10,11,12,13,14,15,16,17,18,19,20,21,38,22,23,24,25,39,26,27,28,33,29,30] ------2----- Id: 5850 QuestionID: 1489 QuestionPropertyType: 7 QuestionPropertyTypeAsString: NoMulti Value: [32]
Availability
Version 5.8