Spotfire Ironpy how to edit specific visualization

SwolleyBible

In all the Spotfire IronPy tutorials the visualizations are defined this way:

vc = detailsVis.As[VisualContent]()

My question is how do I define an object for a specific visualization? Can I do it by title? Can I do it by objectid?

Basically, I have multiple visualizations on a tab. I would like to be able to point the script toward a specific visualization to change axis values and some other stuff..

niko

the easiest way is to use the parameters supplied in the script editor. this is pretty clearly detailed in the online help so I won't go into it.

you can also refer to a visualization by its title or Id (no imports required):

# loop through all pages in analysis
for p in Document.Pages:
    print p.Title, p.Id

# loop through all visuals on a page
page_index = 3    # integer index of the page (left to right; starts at 0)
for v in Document.Pages[page_index].Visuals:
    print v.Title, v.Id

# try to find a specific visual on a page by title
for p in Document.Pages:
    for v in p.Visuals:
        if v.Title == "sometitle": visual_id = v.Id 

# or by Id, if you know it already
Document.Pages[1].Visuals.TryGetVisual(visual_id)

Document.Pages is a PageCollection.

Document.Pages.Visuals is a VisualCollection

it's probably best to just stick with the parameters, though :)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Suppress 0 in the Spotfire visualization

From Dev

How can I automatically use values from a higher-lever(master) visualization when creating a lower-level visualization (details) in Spotfire?

From Dev

How to add/remove columns in CrossTable visualization in Spotfire using IronPython script plugged to button?

From Dev

Max Date Function in Spotfire Visualization Title

From Dev

Displaying zero values in spotfire data visualization

From Dev

How to edit a function with a specific environment defined in R

From Dev

How to edit a zabbix trigger for a specific host?

From Dev

How to edit a specific pattern according to an array of patterns?

From Dev

How to open Edit Contacts Screen for Specific Contact

From Dev

How to disable edit button in specific row in Listview

From Dev

how to edit a specific column of a file using python

From Dev

Calculated Column for Adjacent Cells of a Specific Value in Spotfire

From Dev

calculation the difference for same column for the specific rows in Spotfire

From Dev

How to merge two tables in spotfire

From Dev

How to allow any user on the server to edit a specific file?

From Dev

How to edit specific elements in XML file using HXT?

From Dev

Java OpenCSV How to edit specific cells from csv file

From Dev

How to Set Edit Mode for Specific Column & Row in a Gridview ASP .Net

From Dev

how to open edit text on specific item is selected from spinner

From Dev

how to use a counter when refering to a specific edit box

From Dev

How to set a user to edit and access a specific database table only?

From Dev

How do i edit a specific part of a text file in free pascal?

From Dev

How to edit specific portions of the File upload functionality in Shiny?

From Dev

How to limit an editor to edit and post in specific categories only?

From Dev

How to edit text in specific tags in specified files to capitalize the content

From Dev

How to search select and edit a specific part of a text file in python

From Dev

Spotfire Plugin Cache Settings, visualization not loading correctly in web interface. Any advice?

From Dev

Edit specific line in a textbox

From Dev

Edit specific Element in XDocument

Related Related

  1. 1

    Suppress 0 in the Spotfire visualization

  2. 2

    How can I automatically use values from a higher-lever(master) visualization when creating a lower-level visualization (details) in Spotfire?

  3. 3

    How to add/remove columns in CrossTable visualization in Spotfire using IronPython script plugged to button?

  4. 4

    Max Date Function in Spotfire Visualization Title

  5. 5

    Displaying zero values in spotfire data visualization

  6. 6

    How to edit a function with a specific environment defined in R

  7. 7

    How to edit a zabbix trigger for a specific host?

  8. 8

    How to edit a specific pattern according to an array of patterns?

  9. 9

    How to open Edit Contacts Screen for Specific Contact

  10. 10

    How to disable edit button in specific row in Listview

  11. 11

    how to edit a specific column of a file using python

  12. 12

    Calculated Column for Adjacent Cells of a Specific Value in Spotfire

  13. 13

    calculation the difference for same column for the specific rows in Spotfire

  14. 14

    How to merge two tables in spotfire

  15. 15

    How to allow any user on the server to edit a specific file?

  16. 16

    How to edit specific elements in XML file using HXT?

  17. 17

    Java OpenCSV How to edit specific cells from csv file

  18. 18

    How to Set Edit Mode for Specific Column & Row in a Gridview ASP .Net

  19. 19

    how to open edit text on specific item is selected from spinner

  20. 20

    how to use a counter when refering to a specific edit box

  21. 21

    How to set a user to edit and access a specific database table only?

  22. 22

    How do i edit a specific part of a text file in free pascal?

  23. 23

    How to edit specific portions of the File upload functionality in Shiny?

  24. 24

    How to limit an editor to edit and post in specific categories only?

  25. 25

    How to edit text in specific tags in specified files to capitalize the content

  26. 26

    How to search select and edit a specific part of a text file in python

  27. 27

    Spotfire Plugin Cache Settings, visualization not loading correctly in web interface. Any advice?

  28. 28

    Edit specific line in a textbox

  29. 29

    Edit specific Element in XDocument

HotTag

Archive