FRAMES | NO FRAMES |
Composes a Tapestry segmentation target group by an array of targets.
Availability: Business Analyst Server.
string TargetGroup ( TargetGroupParameters Parameters, esriFolderItem OutputItem );
Parameter | Description |
---|---|
Parameters | Configuration options. Type TargetGroupParameters. |
OutputItem | (Optional
parameter — can be null). Configuration options for storing the output segmentation target group in the repository. This will enable viewing and working with the output result in subsequent tasks. Type esriFolderItem. |
Variable of type String containing XML serialized segmentation target group
The example below generates a Target Group list which is often used as input to other Business Analyst Server analysis tasks.
NOTE: Target group values are associated with market Tapestry segment codes. See GetSegments lookup operation to query available Tapestry segments.
C# |
// Instantiate the BAServerHelper class to access analysis methods BAServerHelper baServerHelper = new BAServerHelper(); baServerHelper.ActiveDatasetID = "USA_ESRI"; // Optional parameter Target[] targets = new Target[2]; targets[0] = new Target(); targets[0].Name = "Group 1"; targets[0].Values = "1,2,3"; targets[1] = new Target(); targets[1].Name = "Group 2"; targets[1].Values = "4,5"; TargetGroupParameters parameters = new TargetGroupParameters(); parameters.Targets = targets; esriFolderItem outputItem = null; string result = baServerHelper.TargetGroup(parameters, outputItem); TargetGroupData targetGroup = new TargetGroupData(); targetGroup.Description = result; |