Jump to content

Property Controls and Bookmarks


. . 11

Recommended Posts

Hi

 

Does anyone know if it is possible to create a dropdown list property control which contains bookmarks So for example if I select Headcount from my dropdown the settings for my Heacount bookmark appear but if I select Revenue from the drop down list my Revenue settings appear

 

Alternatively does anyone know if it is possible to script "if" statements based on a property control drop down So in this example Headcount is selected and a script run that states if Property control = headcount run this script if property control = Revenue run this script.

 

Thanks

Alex

Link to comment
Share on other sites

  • 2 years later...
  • 3 years later...

Hi there,

 

To answer the second part of your question - you can indeed run a script based upon a property. The way to do this is to have your document property associated with your drop down trigger an IronPython script. Within this script you can then choose to execute another script based upon whatever selection the user has picked.

 

See this article on how to call other IronPython scripts from within an IronPython script. So you should be able to do a series of IF statements, each which call different scripts using this:

https://community.spotfire.com/wiki/using-ironpython-call-script-tibco-spotfire

 

There is also a DXP posted here that loops bookmarks and displays their settings. I'm not sure if this helps you

https://community.spotfire.com/questions/looping-through-all-bookmarks-and-displaying-filter-settings-text-area

 

Hope this helps

Colin

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...