Jump to content
We've recently updated our Privacy Statement, available here. ×

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):


return Document.Data.Tables(tableName)


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

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

if Param1 == "Max(WellVolume)" :



if Param1 == "Min(WellVolumne)" :





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...