Jump to content
  • 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

    Introduction

    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]()
    s.Add(primayCol)
    
    table.PrimaryKey = s
     

    References

    License:  TIBCO BSD-Style License

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...