Jump to content
  • Configure or change the URL of Web Page Panel/Collaboration Panel in Spotfire® Using IronPython Scripting.


    Introduction

    The Web Page panel is a tool that allows you to view web pages in Spotfire. To configure the Web Page Panel, you can enter a URL to a web page that Spotfire will show in the Web Page panel. The script that allows to configure or change the URL of the Web Page Panel/Collaboration Panel.

    The below script configures or changes the URL pf specified Web Page Panel/Collaboration Panel.

    Code sample

    # Copyright © 2017. TIBCO Software Inc.  Licensed under TIBCO BSD-style license.
    
    import clr
    import System
    from System import Uri
    clr.AddReference ( "System" )
    
    import Spotfire.Dxp.Application
    from Spotfire.Dxp.Application import PanelTypeIdentifiers
    
    for panel in Application.Document.ActivePageReference.Panels:
        if (panel.TypeId == PanelTypeIdentifiers.CollaborationPanel):
            if (panel.Title == "Web Page"):
                panel.Url = Uri ( "http://www.google.com/"" )
     

    References

    License:  TIBCO BSD-Style License

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...