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.

QuestionGroupBranch class: Difference between revisions

From Catglobe Wiki
Created page with "{{CGscriptClass_Template |Name=<nowiki>QuestionGroupBranch</nowiki> |Description=<nowiki>Question group.</nowiki> |Methods= {{CGscriptMethods_Template|ReturnType=Array of Ques..."
 
No edit summary
Line 13: Line 13:
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
}}
}}
=== <span style="color:#DF8621">'''Examples'''</span> ===
<source lang="javascript">
number qnaireRId = 15644704;
QuestionGroupRoot root = Questionnaire_getQuestionGroups(qnaireRId);
QuestionGroupBranch branch = root.FindByName("G1");
print(branch.GroupName);//G1
</source>

Revision as of 07:20, 31 January 2019

QuestionGroupBranch



Question group.


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

number qnaireRId = 15644704;
QuestionGroupRoot root = Questionnaire_getQuestionGroups(qnaireRId);
QuestionGroupBranch branch = root.FindByName("G1");
print(branch.GroupName);//G1