Difference between revisions of "GroupBuilderTrackingStatusVariable class"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "{{CGscriptClass_Template |Name=<nowiki>GroupBuilderTrackingStatusVariable</nowiki> |Description=<nowiki>Represents a group builder variable for tracking status.</nowiki> |Cons...")
 
Line 15: Line 15:
 
{{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">
 +
GroupBuilderRoot root = new GroupBuilderRoot (15569488);
 +
GroupBuilderTrackingStatusVariable trackingStatusVariable = new GroupBuilderTrackingStatusVariable();
 +
trackingStatusVariable.QuestionnaireResourceId = 15569630;
 +
trackingStatusVariable.MinTrackings =1;
 +
trackingStatusVariable.MaxTrackings =1000;
 +
trackingStatusVariable.IncludeStarted=true;
 +
GroupBuilderRule rule = new GroupBuilderRule (root);
 +
rule.Add(trackingStatusVariable);
 +
GroupBuilderRuleCollection ruleColection = root.RootRules;
 +
ruleColection.Add(rule);
 +
root.Save();
 +
</source>
 +
[[File:GB_Tracking.png]]

Revision as of 06:21, 10 July 2017

GroupBuilderTrackingStatusVariable



Represents a group builder variable for tracking status.

Constructors

  • () - Create new variable

Methods

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

Properties

  • bool Include { get; set; } - Include users that match rule, or exclude
  • bool IncludeStarted { get; set; } - Include those that are started in the result, even though tracking amount is zero
  • int MaxTrackings { get; set; } - Respondents that have read or shared the email atmost x times
  • int MinTrackings { get; set; } - Respondents that have read or shared the email atleast x times
  • string ObjectTypeName { get; } - The name of the type of object.
  • int QuestionnaireResourceId { get; set; } - Questionnaire to get users from
  • TypeInformation TypeInformation { get; } - Get information about this class.


Examples

GroupBuilderRoot root = new GroupBuilderRoot (15569488);
GroupBuilderTrackingStatusVariable trackingStatusVariable = new GroupBuilderTrackingStatusVariable();
trackingStatusVariable.QuestionnaireResourceId = 15569630;
trackingStatusVariable.MinTrackings =1;
trackingStatusVariable.MaxTrackings =1000;
trackingStatusVariable.IncludeStarted=true;
GroupBuilderRule rule = new GroupBuilderRule (root);
rule.Add(trackingStatusVariable);
GroupBuilderRuleCollection ruleColection = root.RootRules;
ruleColection.Add(rule);
root.Save();

GB Tracking.png