#1. Take the filter panel from the desired page in filter panel
#filterPanel = Document.Pages[1].FilterPanel
filterPanel = Document.ActivePageReference.FilterPanel
#1.1 Select the filtering scheme to use (optional)
#filterringScheme = Document.FilteringSchemes[Document.Data.Filterings["Filtering scheme"]]
#filterPanel.FilteringSchemeReference = filteringScheme
#2. Reset only visible filters
for tableGroup in filterPanel.TableGroups:
for filterHandle in tableGroup.FilterHandles:
if filterHandle.Visible:
filterHandle.FilterReference.Reset()
No comments:
Post a Comment