Jump to content
  • How to Show or Hide Pages for Consumer users in the Viewing Mode in Spotfire® using IronPython Script.


    Introduction

    This article describes about how to show or hide Pages from Consumer users in the Viewing Mode in Spotfire® using IronPython Script.

    Changes in Spotfire 10.7

    Spotfire® 10.7 has a new capability to show or hide pages for consumer users. 

    The new Public API named 'Visible' has been introduced in Spotfire® version 10.7 to  to programmatically show or hide Pages from Consumer users in the Viewing Mode. This means that pages can be shown or hidden from consumer users dependent on the context in which the analysis is opened, for example, who the logged in user is.

    Code Sample

    # Copyright © 2019. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
    
    for p in Document.Pages:
    	if p.Title=='Intro':
    		if p.Visible == False:
    			p.Visible = True
    		else:
    			p.Visible = False
     

     

    References

    License:  TIBCO BSD-Style License

    Back to IronPython Scripting in Spotfire® Examples


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...