Jump to content
  • Navigate Pages using IronPython in Spotfire®


    Introduction

    Iterate over the pages and navigate to the page if it is named "Page Name". Alternatively, navigate to a page name selected from a drop down list or other property control.

    Code Sample

     # Iterate over the pages and navigate to the page if it is named "Page Name" 
     for page in Document.Pages:    
         if (page.Title == "Page Name"):       
             Document.ActivePageReference=page   
     
     # To navigate to a page with a Document Property control (such as a dropdown list), use this code  
     dp = Document.Properties["MyPage"]  
     
     for page in Document.Pages:    
         if (page.Title == dp):       
             Document.ActivePageReference=pag
     

    For a step-by-step guide on creating a dropdown list to navigate pages, go here.

    References

    License:  TIBCO BSD-Style License

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...