Francesco Guagliardo Posted November 5, 2019 Share Posted November 5, 2019 I have made a script that at the press of a button deletes one vis and shows another in its stance To do that I use: page.Visuals.Remove(vis1_name) visual=page.Visuals.AddNew(VisualTypeIdentifiers.BarChart) When creating the viz, spotfire decides to always put at the bottom of the page but I would like it somewhere specific, like for example after another visualisation. How can I controll where in the page the visualisation pops up when I use the AddNew function Thanks, Frank Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted November 5, 2019 Share Posted November 5, 2019 The following article has a sample script to set the layout of visualizations in a page https://community.spotfire.com/wiki/how-set-layout-visualizations-page-tibco-spotfire-using-ironpython Link to comment Share on other sites More sharing options...
Francesco Guagliardo Posted November 6, 2019 Author Share Posted November 6, 2019 Thanks, that almost does it. But do you know if there is a way to get the current layout and then cahgne only one bit of it I can't make the layout from scratch everytime the page has got a lot of vis. Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted November 6, 2019 Share Posted November 6, 2019 seems like it is not possible to get the current layout of the page. I would suggest you to file an enhancement request for that feature in the Ideas portal linked above: http://ideas.tibco.com/ 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