问题
Is there a way to check or uncheck certain markings in "limit data using markings" in a visualization through a python script?
回答1:
The answer from https://community.tibco.com/questions/limit-data-using-markings-python-script
from Spotfire.Dxp import Data
from Spotfire.Dxp.Application.Visuals import *
vis.As[VisualContent]().Data.Filterings.Add(Document.Data.Markings["Marking"])
They "hide" the Markings in the Filters.
来源:https://stackoverflow.com/questions/38224691/spotfire-limit-data-using-markings-by-python-script