ResultAccumulatorAddColumns Method (CalculationResultsIdentifier, DataTable, ColumnBuilder) TIBCO Spotfire 7.6 API Reference
Adds a column to an existing table or replaces it if it already exist.

Namespace: Spotfire.Dxp.Application.Calculations
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 25.11.10401.3615 (25.11.10401.3615)
Syntax

C#
public void AddColumns(
	CalculationResultsIdentifier id,
	DataTable table,
	ColumnBuilder builder
)

Parameters

id
Type: Spotfire.Dxp.Application.CalculationsCalculationResultsIdentifier
A unique identifier for this result.
table
Type: Spotfire.Dxp.DataDataTable
The DataTable to insert the columns in.
builder
Type: Spotfire.Dxp.Data.ColumnsColumnBuilder
A ColumnBuilder containing the values that the column should contain. Column name will be made unique within this DataTable.
Exceptions

ExceptionCondition
NotSupportedExceptionIf multiple calls are made with the same id but differing table.
Remarks

This method can be called multiple times with new builders to add to the same id within a calculation. In that case they all need to reference the same table.
Version Information

Supported in: 7.6, 7.5, 7.0, 6.5, 6.0, 5.5, 5.0
See Also

Reference