Searching Columns

This example illustrates how to search for column

#finds the index of columns based on search expression.
#see "Searching in TIBCO Spotfire" from the TIBCO Spotfire User's Guide (help file)

searchExpression = "*Out*" #help>Tools>Find>Searching in TIBCO Spotfire
cols = myTable.Columns

for startCols in cols.FindAll(searchExpression): 
   index=0
   for c in cols:
      if c.Name == startCols.Name:
         print index, c.Name
      index+=1
Previous
Next Post »