Jump to content
We've recently updated our Privacy Statement, available here. ×

IPython buttons not active on web player


Austin Coleman

Recommended Posts

Hello. I'm new to Spotfire. We're using Spotfire X Analyst and Web Player. In Analyst I've made a few buttons turning map layers on/off based on the IPython code snippet below:

Code:

from Spotfire.Dxp.Application.Visuals import *

v = viz.As[VisualContent]()

for l in v.Layers:

if l.Title == Swedish:

if l.Enabled == True:

l.Enabled = False

else:

l.Enabled = True

full code info at this link:https://datashoptalk.com/ironpython-in-spotfire-creating-a-button-to-toggle-a-map-layer-on-and-off/

After publishing to the library the buttons are "grayed out" in the web player. My user is added to the Sript Author group, so I thought that would make the scripts available.

Any suggestions on how to make these basic button available to the web player

Link to comment
Share on other sites

Was the user added to Script Author group before saving the file to library or after If it is after you might want to make any small change to script (like adding a comment), re-run the script and then save the analysis to library so that the scripts are trusted and saved. After this try to open the analysis in WebPlayer to verify
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...