for a docked Filter Panel
#show hide FilterPanel across all tabs
#pages to ignore toogling filter panel
xTabs = ['HOME','css']thisPagePanelState = Document.ActivePageReference.FilterPanel.Visible
for p in Document.Pages:
if p.Title not in xTabs:
p.FilterPanel.Visible = not thisPagePanelState
script
for undocked Filter Panel (popup)
for undocked Filter Panel (popup)
from Spotfire.Dxp.Application.Layout import PanelState
filterPanel = Document.ActivePageReference.FilterPanel
#Hide undocked filter panel if opened
if filterPanel.PanelState == PanelState.Popover:
filterPanel.PanelState = PanelState.Docked
filterPanel.Visible=False
else: #show udocked filterpanel
filterPanel.PanelState = PanelState.Popover
script
for DoD Panel
#show hide DetailsOnDemandPanel across all tabs
#pages to ignore toogling filter panel
xTabs = ['HOME','css']
thisPagePanelState = Document.ActivePageReference.DetailsOnDemandPanel.Visible
for p in Document.Pages:
if p.Title not in xTabs:
p.DetailsOnDemandPanel.Visible = not thisPagePanelState
No comments:
Post a Comment