Jump to content

Could someone tell me what's wrong with my script please Thanks


Kevin Nguyen 4

Recommended Posts

from Spotfire.Dxp.Application.Visuals import *

Param1 = Document.Properties['Col1']

print Param1

def getDataTable(tableName):

try:

return Document.Data.Tables(tableName)

except:

raise ("Error - Cannot find data table: " + tableName)

myDataTable = getDataTable("Merged Excel Files (4)")

if Param1 == "Max(WellVolume)" :

 

Vis1.As[TablePlot]().TableColumns.Add(myDataTable.Columns["Max(WellVolume)for"])

if Param1 == "Min(WellVolumne)" :

 

Vis1.As[TablePlot]().TableColumns.Add(myDataTable.Columns["Min(WellVolume)for"])

Error:

None

warning: DeprecationWarning: raising a string exception is deprecated

Traceback (most recent call last):

File "Spotfire.Dxp.Application.ScriptSupport", line unknown, in ExecuteForDebugging

File "", line 17, in

File "", line 14, in getDataTable

Error - Cannot find data table: Merged Excel Files (4)

Error - Cannot find data table: Merged Excel Files (4)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...