Ankita Bhattacharjee Posted June 16, 2016 Share Posted June 16, 2016 Hello All, I am working on creating a personalized page where the user will be able to see selected visuals from the other pages of the dashboard. For this I need python script for copying visualization from any of the pages and pasting it to the personalized page. Can anyone help me on that Thanking you in advance. Link to comment Share on other sites More sharing options...
Andrew Berridge Posted June 16, 2016 Share Posted June 16, 2016 Hi - this is pseudocode - but this is the method: destinationPage.Visuals.AddDuplicate(visualToCopy) That should do it! You need a reference to the destination page and the visual to copy. Both could be supplied as parameters to the script or got by iterating over the respective page and visual collections. Post again if you need further info. Andrew (TIBCO Data Science) Link to comment Share on other sites More sharing options...
Ankita Bhattacharjee Posted June 17, 2016 Author Share Posted June 17, 2016 Thanks a lot Andrew. I'll try this method and let you know. Link to comment Share on other sites More sharing options...
Ankita Bhattacharjee Posted June 20, 2016 Author Share Posted June 20, 2016 That code did work! Now I'm able to copy a visualization through scripting. Thanks a lot for your help. :) Link to comment Share on other sites More sharing options...
wenkebach eriftops Posted August 1, 2016 Share Posted August 1, 2016 Hi Andrew, could you share a sample code Thanks in advance. Link to comment Share on other sites More sharing options...
Hector Martinez 2 Posted June 1, 2019 Share Posted June 1, 2019 Here is the code example; where 'visualToCopy' is script parameter. Document.ActivePageReference.Visuals.AddDuplicate(visualToCopy) 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