Script to iterate or loop through all pages
I'm trying to reference the same filter(data table) on all my pages and have got part of the script working (refer below) but only on one selected page. How can I apply the same for all my pages (assuming I have 10 pages)?. I've read somewhere that I might need to do iteration or loop but I have no idea how.
from Spotfire.Dxp.Application.Filters import *
# Get filtering scheme reference
Document.ActivePageReference = Document.Pages
filterPanel = Document.ActivePageReference.FilterPanel
filteringScheme = filterPanel.FilteringSchemeReference