Action
    Preparing search index...

    A DataTable is a collection of columns and metadata.

    No public constructors are defined for a data table, see the Spotfire.Dxp.Data.DataTableCollection class for creation methods.

    2.0

    Hierarchy (View Summary)

    Implements

    Index

    Methods

    • Casts this object to the specified type. Throws error on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns T1

    • Determines whether the specified object is equal to the current object.

      Parameters

      • obj: any

        The object to compare with the current object.

      Returns boolean

      true if the specified object is equal to the current object; otherwise, false.

    • Serves as the default hash function.

      Returns number

      A hash code for the current object.

    • Returns a string that represents the current object.

      Returns string

      A string that represents the current object.

    • Casts this object to the specified type. Returns null on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns null | T1

    • Determines whether the specified object instances are considered equal.

      Parameters

      • objA: any

        The first object to compare.

      • objB: any

        The second object to compare.

      Returns boolean

      true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.

    Default capability

    • get AutoCreateFilters(): boolean

      Gets or sets a value indicating whether to automatically create filters for new columns.

      Returns boolean

      2.0

    • set AutoCreateFilters(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    • get Context(): INodeContext

      Gets the context of this node.

      Returns INodeContext

      2.0

    • get HasValidPrimaryKey(): boolean

      Gets a value indicating whether the table has a valid primary key or not.

      Returns boolean

      2.0

    • get Id(): Guid

      Gets a unique identifier for this table.

      Returns Guid

      2.0

    • get IsAttached(): boolean

      Gets a value indicating whether this node is attached.

      Returns boolean

      2.0

    • get IsExternal(): boolean

      Gets a value indicating whether the data in this table is kept external.

      Returns boolean

      2.0

    • get Name(): string

      Gets or sets the name of this table.

      Returns string

      2.0

    • set Name(value: string): void

      Parameters

      • value: string

      Returns void

    • get NameEscapedForExpression(): string

      Gets the name of the table escaped for usage in an expression. This is a utility method which uses EscapeIdentifier(identifier).

      Returns string

      2.0

    • get Refreshing(): boolean

      Gets a value indicating whether the data table is refreshing.

      Returns boolean

      Only external events are raised when this property is changed. Internal events are not raised.

      2.0

    • get RowCount(): number

      Gets the number of rows in the columns in this table. All columns in a Spotfire.Dxp.Data.DataTable have the same number of rows.

      Returns number

      2.0

    • get ShowColumnMatchPrompt(): boolean

      Gets or sets a value indicating whether to show a prompt for matching columns when data has been replaced.

      Returns boolean

      2.0

    • set ShowColumnMatchPrompt(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    • get Transactions(): ITransactions

      Gets a collection of methods for executing transactions on the document.

      Returns ITransactions

      2.0

    • Adds columns from the columns retrieved from the dataSource using the settings in the settings parameter. Use Spotfire.Dxp.Data.DataManager.CreateFileDataSource|CreateFileDataSource(filePath) to create a data source from a file path.

      Parameters

      • dataSource: DataSource

        The data source to retrieve the new columns from.

      • settings: AddColumnsSettings

        The settings to use when adding the columns to the current table.

      Returns ColumnsChangedResult

      Information about the changes that occured in the table.

      If the settings specifies a join condition based on a calculated column, that column must be frozen. See Spotfire.Dxp.Data.CalculatedColumn.Freeze.

      2.0

    • Adds rows from the columns retrieved from the dataSource using the settings in the settings parameter. Use Spotfire.Dxp.Data.DataManager.CreateFileDataSource|CreateFileDataSource(filePath) to create a data source from a file path.

      Parameters

      • dataSource: DataSource

        The data source to retrieve the new columns from.

      • settings: AddRowsSettings

        The settings to use when adding the rows to the current columns.

      Returns ColumnsChangedResult

      Information about the changes that occured in the table.

      2.0

    • Adds a transformation to the table. The transformation will be applied on the source columns in the table (i.e., the columns originating from a data source or the result of an add columns or add rows operation.) Calculated columns will not be affected.

      Parameters

      Returns ColumnsChangedResult

      Information about the changes that occured in the table.

      2.0

    • Gets a value indicating whether the data table can be reloaded using the Spotfire.Dxp.Data.DataTable.ReloadAllData method.

      Returns boolean

      True if the data table can be reloaded; false otherwise.

      Reloading data might not be possible if the data table contains parts that cannot be reloaded, such as clipboard data.

      2.0

    • Gets a value indicating whether the data table can be reloaded using the Spotfire.Dxp.Data.DataTable.ReloadLinkedData method.

      Returns boolean

      True if the data table can be reloaded; false otherwise.

      Reloading only linked data is not possible for an embedded data table, and might not be possible if the data table contains parts that cannot be reloaded, such as clipboard data, or data sources that have been set to store their data.

      2.0

    • Gets the distinct rows for the specified cursors. Note that this method is not supported for external data tables.

      Parameters

      • rowIndexes: null | IndexSet

        The row indexes to enumerate. May be null for all rows.

      • ...valueCursors: DataValueCursor[]

        Specifies which columns to include in the enumeration. These are used to access the individual data values for each row. You need to specify at least one value cursor.

      Returns System.Collections.Generic.IEnumerable<DataRow>

      An enumerator of the distinct rows in the subset. The order of the returned rows is not specified.

      Note that the Index property on the DataRow will not return any valid values for this method.

      2.0

    • Refreshes data that depends on other data and is not automatically updated. This includes on-demand data with manual refresh, data functions with update behavior Manual and calculations with update behavior Invalidate.

      Returns void

      This will only refresh the data table if the Spotfire.Dxp.Data.DataTable.NeedsRefresh property is true.

      2.0

    • Reloads all data in this data table including data sources set to store their data.

      Returns void

      Reloading data might not be possible if the data table contains parts that cannot be reloaded, such as clipboard data. For more fine-grained control over data reloading, use the Spotfire.Dxp.Data.DataOperations.DataOperation API on the Spotfire.Dxp.Data.SourceView

      2.0

    • Reloads only linked data in this data table.

      Returns void

      Reloading only linked data is not possible for an embedded data table, and might not be possible if the data table contains parts that cannot be reloaded, such as clipboard data, or data sources that have been set to store their data. For more fine-grained control over data reloading, use the Spotfire.Dxp.Data.DataOperations.DataOperation API on the Spotfire.Dxp.Data.SourceView

      2.0

    • Remove rows from this table.

      Parameters

      • rowMask: RowSelection

        A row selection defining which rows to remove.

      Returns void

      2.0

    • Replace the data in the table with the columns in the data source. Use Spotfire.Dxp.Data.DataManager.CreateFileDataSource|CreateFileDataSource(filePath) to create a data source from a file path.

      Parameters

      • dataSource: DataSource

        The data source to get the new data from.

      Returns ColumnsChangedResult

      Information about the changes that occured in the table.

      2.0

    • Returns the rows that matches the where clause expression. The expression must be a boolean Spotfire expression.

      Parameters

      • whereClause: string | String

        A where clause expression.

      Returns RowSelection

      The rows that matches the expression.

      2.0

    Extended capability 'LibraryWrite'

    • Export the data in the data table as a data file in the library.

      Parameters

      • libraryItem: LibraryItem

        This library item is either the folder where the data file should be stored or a data file to overwrite.

      • title: string | String

        The title of the file to store in the library.

      Returns LibraryItem

      The created library item.

      2.0