Customer Banners (Ads) - SpiceUp. AX and SpotfireX Disclaimer



If you find this site useful and you want to support, buy me a coffee   to keep this site alive and without ads.

Duplicate or update a visual across all pages

 This script is useful when you want to update, for exampe, a text area that serves as a masthead across all tabs. The first time the visualization will be placed randomly, but once you adjust the size and position on every page, that's all you need to do


#vis is a script parameter indicating the visual to copy (or replace) across all pages
for p in Document.Pages:
	if not p.Visuals.Contains(vis):
		v2 = p.Visuals.AddDuplicate(vis)
		v2.Title = vis.Title+"!"
		for v in p.Visuals:
			if v.Title == vis.Title:
				p.Visuals.Remove(v)
		v2.Title = vis.Title

No comments: