Jump to content
  • How to pass filter value into Visualization Title using IronPython Script in Spotfire®.


    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.

    converted-file.thumb.png.23d73dc10d77827a761469878d062253.png

     

    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

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...