Drop down filter script for multiple pages using spotfire

Hi

Any one can help drop down filter script for multiple pages

In my report siteId column i have used for multiple pages.When user selects the SiteId and submit the page ,site Id suppose to select in all pages

I have 3 pages for each page i have separate information link created in that siteId is common for all pages, totally 6 reports is there when we select siteID it suppose to

be select the siteId data in all information links.Please find snapshot for UIPage

Tired using below script

import Spotfire.Dxp.Application.Filters as filters
import Spotfire.Dxp.Application.Filters.ListBoxFilter
from Spotfire.Dxp.Application.Filters import FilterTypeIdentifiers
from Spotfire.Dxp.Data import DataPropertyClass
from Spotfire.Dxp.Application import Filters

from System import String
Document.ActivePageReference = Document.Pages[0]
myPanel = Document.ActivePageReference.FilterPanel
myFilter= myPanel.TableGroups[0].GetFilter("site_id")
lbFilter = myFilter.FilterReference.As[filters.ListBoxFilter]()
lbFilter.IncludeAllValues=False
strVals = Document.Properties["Siteid"]
if strVals!=String.Empty:
  lbFilter.SetSelection(strVals.split())
else:
  lbFilter.Reset()

Document.ActivePageReference = Document.Pages[1]
myPanel = Document.ActivePageReference.FilterPanel
myFilter= myPanel.TableGroups[0].GetFilter("site_id")
lbFilter = myFilter.FilterReference.As[filters.ListBoxFilter]()
lbFilter.IncludeAllValues=False
strVals = Document.Properties["Siteid"]
if strVals!=String.Empty:
  lbFilter.SetSelection(strVals.split())
else:
  lbFilter.Reset()

Attachments

AttachmentSize
Image icon report1.png78.27 KB
Image icon report.png109.33 KB
Login