Difference between revisions of "QuestionGroupLeaf class"

From Catglobe Wiki
Jump to: navigation, search
Line 14: Line 14:
 
}}
 
}}
 
=== <span style="color:#DF8621">'''Examples'''</span> ===
 
=== <span style="color:#DF8621">'''Examples'''</span> ===
 +
<span style="color:#DF8621"> QuestionGroupLeaf is returned when calling [[QuestionGroupRoot_class]]</span>
 
<source lang="javascript">
 
<source lang="javascript">
 
number qnaireRId = 15644704;
 
number qnaireRId = 15644704;

Revision as of 05:03, 14 February 2019

QuestionGroupLeaf



Question group leaf.


Methods

  • Array of QuestionGroupTree GetChildGroups() - Return all child groups, if empty then it is a leaf.
  • string ToString() - The string representation of the object.

Properties

  • Array of string AllQuestions { get; } - Labels of all questions in this group
  • int Count { get; } - How many children in this group
  • string GroupName { get; } - Name of question group
  • string ObjectTypeName { get; } - The name of the type of object.
  • string SequenceType { get; } - Which kind of question group is it
  • TypeInformation TypeInformation { get; } - Get information about this class.

Examples

QuestionGroupLeaf is returned when calling QuestionGroupRoot_class

number qnaireRId = 15644704;
QuestionGroupRoot root = Questionnaire_getQuestionGroups(qnaireRId);
QuestionGroupLeaf leaf = root.FindByQuestion("Q1");
print(leaf.GroupName);//G2