Jump to content
We've recently updated our Privacy Statement, available here. ×
  • Navigate Spotfire pages / tabs with a dropdown


    This article Navigates Spotfire pages

    First note there is an in-built option to do this right on the Page Navigation bar:

    1.png.26a168aa72f6303b8c15aa9ca31cf407.png

    However, if you want to have a Dropdown in Text Areas, you can follow this step-by-step guide.


    1) Create a Text Area

    2.png.d7e54d82fea7e1741da4ee7a7d88ee00.png

    2) Create a Property Control

    3.png.93c8f2ca00b59addb51492a8d7cf7fd5.png

    3) Create a Document Property "MyPage" or whatever you'd like. Make it a "String" data type

    4.png.bcad3029fcb7b0c169b9e696bdbb9c79.png

    4) Set property value through "Fixed Values", then enter your dropdown displayed text in 1st column and the actual page name in 2nd column (you may choose to keep these the same)

    5.png.066c073503fdc8a57a6657f849314422.png

    5) Go to File > Document Properties > Properties tab, and then have "MyPage" trigger an IronPython script whenever the value changes

    6.png.8b54a1fb921d038a24305bef5f2134f6.png

    6) Create the script as follows

    7.thumb.png.c8e0ca3f53f0f91f0986fae0ea36b211.png

     dp = Document.Properties["MyPage"]  
     for page in Document.Pages:    
     	if (page.Title == dp):       
     		Document.ActivePageReference=page
     

     

    7) You're all set! You can right-click the Text Area and "duplicate" it, then place the duplicated Text Areas on each page so you don't have to re-configure things.

    Go here to find more IronPython Scripting help: https://community.spotfire.com/s/article/IronPython-Scripting-in-TIBCO-Spotfire


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...