Shri G Posted February 3, 2023 Share Posted February 3, 2023 Hi All,I have a two table visualizations on separate pages with separate data tables. Some of the columns are common in both the data tables. I have managed relation between both data tables and selected Include filtered rows only as wanted to have same filtering scheme to be application on both the pages.I have created Hierarchies for these common columns for both data tables and created filters. I have to add Select All and Deselect All buttons for this hierarchy filters. For this I have used python script. It is working for page 1 visualization but same script is not working for Page 2 visualization. I am getting below error.Could not perform action 'Select All'.Could not execute script 'SelectAllDates': The collection does not contain a filter with the specified name.Script I have used :Select All:from Spotfire.Dxp.Application.Filters import *from Spotfire.Dxp.Application.Visuals import VisualContentfrom System import Guid#Get the active page and filterPanelpage = Application.Document.ActivePageReferencefilterPanel = page.FilterPanel# Get the FiltermyModFilter = filterPanel.FilteringSchemeReference.DefaultFilterCollection["case open date"];hierFilter_mod = myModFilter.As[CheckBoxHierarchyFilter]();# Check all nodeshierFilter_mod.CheckAllNodes()Deselect All:from Spotfire.Dxp.Application.Filters import *from Spotfire.Dxp.Application.Visuals import VisualContentfrom System import Guid#Get the active page and filterPanelpage = Application.Document.ActivePageReferencefilterPanel = page.FilterPanel# Get the FiltermyModFilter = filterPanel.FilteringSchemeReference.DefaultFilterCollection["case open date"];hierFilter_mod = myModFilter.As[CheckBoxHierarchyFilter]();# Uncheck all nodeshierFilter_mod.UncheckAllNodes()Can somebody help me with this please?Thanks! Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted February 8, 2023 Share Posted February 8, 2023 Hello Shri,Would it be possible for you to share the dxp file (please remove anything sensitive, just keeping enough so that the issue can be reproduced)? Link to comment Share on other sites More sharing options...
Shri G Posted February 16, 2023 Author Share Posted February 16, 2023 Hello @Fredrik Rosell I have removed all the sensitive information. It contains dates and modality only. You can use below dxp file. Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted February 16, 2023 Share Posted February 16, 2023 Hello,This data (information links) is linked (so it requires access to your environment to open). When saving the sample analysis, in the Data Loading Setting, use the option at the bottom to "Change all applicable data sources" to" "Stored data". Link to comment Share on other sites More sharing options...
Shri G Posted February 16, 2023 Author Share Posted February 16, 2023 Hi @Fredrik Rosell , sorry for this inconvenience! I am new to Spotfire I was not aware of this 😬 Please find attached updated dxp file Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted February 16, 2023 Share Posted February 16, 2023 Hi Shri,So do you see the issue using the embedded version that you sent? I'm afraid I don't see any issue with the latest analysis. The scripts are a bit different from what you first posted though (not using "case open date" in myModFilter = filterPanel.FilteringSchemeReference.DefaultFilterCollection["case open date"];)I tested both SelectAllModalities and SelectAllCaseOpenDates.This is most likely easier to troubleshoot further as a support case, so I recommend that you open a case for this in the TIBCO Support Portal - https://support.tibco.com/s/ Link to comment Share on other sites More sharing options...
Informatics Consultant Posted May 14 Share Posted May 14 Does anyone have the solution ? I'm facing the same issue. 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