ResultAccumulator AddColumns Method (CalculationResultsIdentifier, DataTable, IEnumerable ColumnBuilder ) TIBCO Spotfire 6.0 API Reference
Adds columns to an existing table or replaces them if they already exist.

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

public void AddColumns(
	CalculationResultsIdentifier id,
	DataTable table,
	IEnumerable<ColumnBuilder> columns
)

Parameters

id
Type: Spotfire.Dxp.Application.Calculations CalculationResultsIdentifier
A unique identifier for this result.
table
Type: Spotfire.Dxp.Data DataTable
The DataTable to insert the columns in.
columns
Type: System.Collections.Generic IEnumerable ColumnBuilder 
The ColumnBuilder instances containing the values that the columns should contain. Column names will be made unique within this DataTable.
Exceptions

ExceptionCondition
System 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.
See Also