Ethan Miller Posted July 22, 2020 Share Posted July 22, 2020 What is the IronPython script to list the data limiting expression for each visualization in a document I've been trying but can't seem to get it right. Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted July 24, 2020 Share Posted July 24, 2020 Check the following article for a sample script reference, https://community.spotfire.com/wiki/how-set-limit-data-expression-visualization-tibco-spotfirer-using-ironpython-scripting You might have to iterate over all the visualizations and get the expression Link to comment Share on other sites More sharing options...
Ethan Miller Posted September 18, 2020 Author Share Posted September 18, 2020 Can you give an example of how to iterate over the visualizations and get the data limiting I can't seem to figure out the syntax. Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted September 24, 2020 Share Posted September 24, 2020 something like below should do #Access current active page page=Document.ActivePageReference # or to access a specific page #page=Document.Pages[1] for visual in page.Visuals: if visual.TypeId != VisualTypeIdentifiers.HtmlTextArea: vis=visual.As[VisualContent]() print visual.Data.WhereClauseExpression Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now