Austin Coleman Posted May 13, 2019 Share Posted May 13, 2019 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 More sharing options...
Shandilya Peddi Posted May 14, 2019 Share Posted May 14, 2019 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 More sharing options...
Austin Coleman Posted May 15, 2019 Author Share Posted May 15, 2019 Thank you for your help. I did not know that would be an issue. Your solution worked. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now