Customer Banners (Ads) - SpiceUp. AX and SpotfireX Disclaimer



If you find this site useful and you want to support, buy me a coffee   to keep this site alive and without ads.

Show / Hide Panels

script
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)
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: