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.

QuestionGroupRoot class: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
Line 2: Line 2:
|Name=<nowiki>QuestionGroupRoot</nowiki>
|Name=<nowiki>QuestionGroupRoot</nowiki>
|Description=<nowiki>Information about question groups in questionnaire.</nowiki>
|Description=<nowiki>Information about question groups in questionnaire.</nowiki>
|Methods=
|InheritsFrom=object|Methods=
{{CGscriptMethods_Template|ReturnType=QuestionGroupTree|Name=<nowiki>FindByName</nowiki>|Parameters=
{{CGscriptMethods_Template|ReturnType=QuestionGroupTree|Name=<nowiki>FindByName</nowiki>|Parameters=
{{CGscriptParameters_Template|Type=string|Name=<nowiki>name</nowiki>|Description=<nowiki>Question group name</nowiki>}}
{{CGscriptParameters_Template|Type=string|Name=<nowiki>name</nowiki>|Description=<nowiki>Question group name</nowiki>}}
Line 11: Line 11:
{{CGscriptMethods_Template|ReturnType=Array of QuestionGroupTree|Name=<nowiki>GetChildGroups</nowiki>|Description=<nowiki>Return all child groups.</nowiki>}}
{{CGscriptMethods_Template|ReturnType=Array of QuestionGroupTree|Name=<nowiki>GetChildGroups</nowiki>|Description=<nowiki>Return all child groups.</nowiki>}}
{{CGscriptMethods_Template|ReturnType=Array of strings|Name=<nowiki>GetPermutation</nowiki>|Description=<nowiki>Get a sequence of questions following the question group rules</nowiki>}}
{{CGscriptMethods_Template|ReturnType=Array of strings|Name=<nowiki>GetPermutation</nowiki>|Description=<nowiki>Get a sequence of questions following the question group rules</nowiki>}}
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}}
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}}
|Properties=
|Properties=
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
{{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|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}}
}}
}}
=== <span style="color:#DF8621">'''Examples'''</span> ===
=== <span style="color:#DF8621">'''Examples'''</span> ===
<span style="color:#DF8621"> QuestionGroupRoot is returned when calling [[Questionnaire_getQuestionGroups]]</span>
<span style="color:#DF8621"> QuestionGroupRoot is returned when calling [[Questionnaire_getQuestionGroups]]</span>

Revision as of 05:10, 2 July 2020

QuestionGroupRoot



Information about question groups in questionnaire.

Parent class

Inherits from object

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
  • (From object) string ToString() - The string representation of the object.

Properties

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


Examples

QuestionGroupRoot is returned when calling Questionnaire_getQuestionGroups

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