Taylor Douthitt 3 Posted May 4, 2023 Share Posted May 4, 2023 I am trying to make a dashboard that allows you to simply select the month of data you would like to pull (in a text area), and it automatically adjusts other filters based on that selection. I'm assuming this would have something to do with filter schemes I would need to set up. Thank you for any help (I ask about text area bc for some who are new to Spotfire, the filter scheme option may be a little hard to find) Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted May 5, 2023 Share Posted May 5, 2023 Hello,Here's a quick example of setting filtering schemes. I have a drop-down list tied to the document property propFilteringScheme that contains the names of the selected filtering scheme. To set the scheme, I use this IronPython script: SetFilteringScheme=====================from Spotfire.Dxp.Application.Filters import *propFilteringScheme = "propFilteringScheme"fScheme=None#get the required FilteringSchemefor fs in Document.FilteringSchemes: if fs.FilteringSelectionReference.Name == Document.Properties[propFilteringScheme]: fScheme= fs#get the filter panel of current active pagemyPanel = Document.ActivePageReference.FilterPanelmyPanel.FilteringSchemeReference=fScheme------(Update: After further research, I have edited the following section) There is currently no way to dynamically set the available options (e.g. to populate the list with the currently filtering schemes when the analysis is opened) - covered by the Idea https://ideas.tibco.com/ideas/SPF-I-330 in the TIBCO Ideas Portal - so you will need to "hard code" the options you want to have available in the drop-down list (using Set Property value though "Fixed values", and list the names of the filtering schemes to include). Link to comment Share on other sites More sharing options...
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