Jump to content

Recommended Posts

Posted

Hi All

I am changing datatable through document property used in table viz using script and it works perfectly but the columns are not coming in the table. How can we load the columns also along with script.

Script Used:

from Spotfire.Dxp.Application.Visuals import *

from Spotfire.Dxp.Data import *

#This script takes myTablePlot Visualization as a script parameter

vis=myTablePlot.As[TablePlot]()

 

if Document.Properties["sc1"] == "A":

table = Document.Data.Tables["A"]

elif Document.Properties["sc1"] == "B":

table = Document.Data.Tables["B"]

elif Document.Properties["sc1"] == "C":

table = Document.Data.Tables["C"]

#Replace the data table used by the visualizatoin

vis.Data.DataTableReference = table

Regards

Addy

  • 3 weeks later...

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