CasewareDocs

AddSecondaryStatisticField

Adds an extra field for secondary statistic operation. Only the Treemap chart supports this function.

Compatibility

Available as of IDEA version 10.3

Syntax

AddSecondaryStatisticField(fieldName As String)

Parameters

fieldName

The maximum allowed number of characters is 40 (after trimming). The value cannot be set to an empty string. The value must be set to a valid field of the IDEA database.

Example: oResultchart.AddSecondaryStatisticField oTag.FieldName

Example

Set oMC = SmartContext.MacroCommands
Set oSC = oMC.SimpleCommands
ChartType = CHART_TYPE_LINE
'chartType can be set to any constant defined in CHART_TYPE_* list
Set oResultFile = oSC.CreateResultObject(sdbname, 1, True, 1)
Set oResultChart = oSC.AddGraphicalResult(oResultFile, ChartType)
If Not oResultChart Is Nothing Then
'set properties
End If

SmartContext.TestResultFiles.Add oResultFile

Please note

Graphical results are not supported for server IDEA databases, so the AddGraphicalResult function will return "Nothing" in this case.