Jump to content
We've recently updated our Privacy Statement, available here. ×
  • How to set key columns for a given data table in Spotfire® using IronPython scripting.

    A scripting example to set the Key columns in Spotfire


    Below is a scripting example to set the Key columns in Spotfire.

    Code sample

    # Copyright © 2017. TIBCO Software Inc.  Licensed under TIBCO BSD-style license.
    from Spotfire.Dxp.Data import *
    from System.Collections.Generic import List
    table = Document.Data.Tables["table1"]
    primayCol = table.Columns[0] #Primary column .. 
    s = List[DataColumn]()
    table.PrimaryKey = s


    License:  TIBCO BSD-Style License



    User Feedback

    Recommended Comments

    There are no comments to display.

  • Create New...