Difference between revisions of "OutcomeSet class"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "{{CGscriptClass_Template |Name=<nowiki>OutcomeSet</nowiki> |Description=<nowiki>Outcome set for cati questionnaires.</nowiki> |Constructors= {{CGscriptConstructors_Template|Pa...")
 
Line 21: Line 21:
 
{{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;
 +
CatiSettings settings = new CatiSettings(qnaireRid);
 +
OutcomeSet outComeSet = settings.OutcomeSet;
 +
outComeSet.Name;//CATI - Ad Hoc (svarer ikke = 2 timer)
 +
</source>

Revision as of 09:22, 30 January 2019

OutcomeSet



Outcome set for cati questionnaires.

Constructors

  • (string name "Name of global outcome set") - Load existing global outcome set
  • (int primaryKey "Key of outcome set") - Load existing outcome set

Methods

  • string ToString() - The string representation of the object.

Properties

  • bool Active { get; } - Get if currently active
  • string Description { get; } - Get description of outcome set
  • int Id { get; } - Get id of outcome set
  • bool IsGlobal { get; } - Get if global available set, or local to a questionnaire
  • array Items { get; } - Get/set items
  • string Name { get; } - Get name of outcome set
  • string ObjectTypeName { get; } - The name of the type of object.
  • TypeInformation TypeInformation { get; } - Get information about this class.


Examples

number qnaireRid = 15639974;
CatiSettings settings = new CatiSettings(qnaireRid);
OutcomeSet outComeSet = settings.OutcomeSet;
outComeSet.Name;//CATI - Ad Hoc (svarer ikke = 2 timer)