This article demonstrates how to toggle the 'Show/Hide Items' Rules for a visualization
Introduction
This article demonstrates how to toggle the 'Show/Hide Items' Rules for a visualization
Code Sample
# Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license. from Spotfire.Dxp.Application.Visuals import * #vis is an input parameter referencing the visualization for which rules need to be toggled Chart = vis.As[VisualContent]() Rules = Chart.TryGetFilterRules() myFilterRuleCollection = Rules[1] if myFilterRuleCollection.Count > 0: for myFilterRule in myFilterRuleCollection: if myFilterRule.DisplayName == "Rule1": if myFilterRule.Enabled == False: myFilterRule.Enabled = True else: myFilterRule.Enabled = False
References
License: TIBCO BSD-Style License
Recommended Comments
There are no comments to display.