Stanley Wei Posted May 26, 2015 Share Posted May 26, 2015 Dear All, I would like to swtich off the legend of a visualization with a dropdown property control, which has fixed values True and False respectively, however, I used the script below but it doesn't work, here are the full codes: # Hide or Show legend# Stanley Wei, May-25 2015from System.Windows.Forms import FolderBrowserDialog,MessageBoxfrom Spotfire.Dxp.Application.Visuals import TablePlot, HtmlTextArea, VisualTypeIdentifiersfrom Spotfire.Dxp.Application.Visuals import VisualContent for vis in Application.Document.ActivePageReference.Visuals: if vis.Title == "Resources allocation trend (FTE)" : rt=vis.As[VisualContent]() MessageBox.Show(Document.Properties["cbxSwitchLegend"]) rt.Legend.Visible=Document.Properties["cbxSwitchLegend"] If I used the abosulte value True of False instead of the Property control, it will work. Any thoughts about this question Thanks a lot, Stanley Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted May 26, 2015 Share Posted May 26, 2015 Thanks, Jots, you are right, I just used the default STRING property, now it works when I changed it to Boolean. Link to comment Share on other sites More sharing options...
Surekha Kasar 3 Posted October 23, 2015 Share Posted October 23, 2015 Since you are planning to directly assign the document property, is the data type of Document Property boolean Link to comment Share on other sites More sharing options...
Surekha Kasar 3 Posted October 23, 2015 Share Posted October 23, 2015 Glad it helped! Link to comment Share on other sites More sharing options...
gurusai sankar Posted May 8, 2019 Share Posted May 8, 2019 Hi Anonymous,could you please help on below spotfire queryhttps://community.spotfire.com/questions/how-get-grand-total-value-all-rows-or-else-how-fix-empty-values-all-rows-except-grand 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