Difference between revisions of "QuestionGroupRoot class"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "{{CGscriptClass_Template |Name=<nowiki>QuestionGroupRoot</nowiki> |Description=<nowiki>Information about question groups in questionnaire.</nowiki> |Methods= {{CGscriptMethods...")
 
Line 16: Line 16:
 
{{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 = 15639974;
 +
QuestionGroupRoot root = Questionnaire_getQuestionGroups(qnaireRId);
 +
</source>

Revision as of 09:12, 31 January 2019

QuestionGroupRoot



Information about question groups in questionnaire.


Methods

  • QuestionGroupTree FindByName(string name "Question group name") - Find a question group by name
  • QuestionGroupLeaf FindByQuestion(string label "Question label") - Find the question group that contains the given question
  • Array of QuestionGroupTree GetChildGroups() - Return all child groups.
  • Array of string GetPermutation() - Get a sequence of questions following the question group rules
  • string ToString() - The string representation of the object.

Properties

  • string ObjectTypeName { get; } - The name of the type of object.
  • TypeInformation TypeInformation { get; } - Get information about this class.

Examples

number qnaireRId = 15639974;
QuestionGroupRoot root = Questionnaire_getQuestionGroups(qnaireRId);