How to obtain the exact order of columns as present in the table, using an IronPython Script.

How to obtain the exact order of columns as present in the table, using an IronPython Script.

book

Article ID: KB0079363

calendar_today

Updated On:

Products Versions
Spotfire Analyst All Versions

Description

You can get the column(s) collection in the exact order as displayed in the Table Plot using the TablePlotBase.

Issue/Introduction

How to obtain the exact order of columns as present in the table, using an IronPython Script.

Environment

All Supported Operating Systems

Resolution

The example script shown below displays the exact sequence of columns as present in the table.
 
#########################################
from Spotfire.Dxp.Application import *
from Spotfire.Dxp.Application.Visuals import *
 
tablePlot = vis.As[TablePlot] ()
for col in tablePlot.TableColumns:
print col.Name
 
#########################################
 
Disclaimer:The script code in this article is only a sample to be used as a reference. It is not intended to be used "As Is" in a Production environment. Always test in a Development environment. Make modifications to the script in accordance with your implementation specifications that best suit your business requirements. Refer to the API reference(s) cited in this article for usage of the classes and methods used in the script.
 

Additional Information

https://docs.tibco.com/pub/doc_remote/spotfire/7.0.0/doc/api/?topic=html/P_Spotfire_Dxp_Application_Visuals_TablePlotBase_TableColumns.htm