Nikita Belooussov Posted March 8, 2021 Share Posted March 8, 2021 I currently have a code that cycles through the pages and visuals in that are avialable. I want to also be able to know which table the visual is refering to if it is a data table, in case the name is changed from the auto generated one. Is there a way to do thisHere is a quick snippet of the code used to cycle through: for d in Document.Pages: Document.ActivePageReference=d for visual in Document.ActivePageReference.Visuals: Link to comment Share on other sites More sharing options...
David Boot-Olazabal Posted March 8, 2021 Share Posted March 8, 2021 Hi p12ain, You may want to have a look at this examplescript to find out which table is tied to a visual:https://community.spotfire.com/wiki/ironpython-script-change-visual-data-table. It probably needs a bit of tweaking though. Kind regards, David Link to comment Share on other sites More sharing options...
Nikita Belooussov Posted March 9, 2021 Author Share Posted March 9, 2021 I also asked this question on stackoverflow and got this answer which works. https://stackoverflow.com/questions/66527743/identify-table-in-visualiza... 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