Product: TIBCO Spotfire®
How to find the Visualization IDs for different visualizations in a Spotfire analysis (DXP) file?
Description: This article describes how to find the visualization IDs for different visualizations in a Spotfire analysis file.
Resolution: Currently there is no way to find the "VisualizationId" of different visualizations in the analysis file directly in the Spotfire Analyst / client. It requires using an IronPython script. The following example script will output the Visualization IDs for the different visualizations in the analysis file.
from Spotfire.Dxp.Application.Visuals import *
for visual in Document.ActivePageReference.Visuals:
print visual.Title + " >>> " + str(visual.Id)
The script code in this article is only a sample to be used as a reference. It is not intended to be used "As Is" in a Production environment. Always test in a Development environment. Make modifications to the script in accordance with your implementation specifications that best suit your business requirements. Refer to the API reference(s) cited in this article for usage of the classes and methods used in the script.
Reference: Refer to the following sample link to learn more about the unique ID of visualizations.
Keywords: visualization, ID, VisualizationId, ActivePageReference, Visuals