Aditya Singh 3 Posted July 27, 2021 Posted July 27, 2021 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
David Boot-Olazabal Posted August 18, 2021 Posted August 18, 2021 Hi Addy, Does this Method 1 example help you (get started)https://community.spotfire.com/wiki/selecting-columns-display-table-visuali.... Kind regards, David Boot-Olazabal
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now