This example shows how to pass the filter value into Visualization Title using an IronPython script.
Introduction
This example shows how to pass the filter value into Visualization Title using an IronPython script.
Code sample
# Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license. from Spotfire.Dxp.Application.Filters import * from Spotfire.Dxp.Data import * filteringScheme = Document.FilteringSchemes[0] dataTable = Document.ActiveDataTableReference filterCollection = filteringScheme[dataTable] filter = filterCollection['City'] Document.Properties["Prop"] = filter.ToString() # Where "City" is the name of the filter column # and "Prop" is the document property used to display title. # The data-type of the document property needs to be same # as the filter column. Use ${Prop} in the desired visualization title.
License: TIBCO BSD-Style License
Recommended Comments
There are no comments to display.