basmodels.blogg.se

Spotfire add reset filters button
Spotfire add reset filters button









spotfire add reset filters button

Min = (idx).Valueįilt.ValueRange = ValueRange(min,min+delta) Idx = IndexSet(myDataTable.RowCount,True) #get a reference to the range filter in questionįilt=].As() Python #changes RangeFilter low and high bounds in small incrementsįrom import RangeFilter, ValueRange

  • Create a script that triggers the Action Control Button button over and over (with optionally start and stop buttons as per the example).
  • spotfire add reset filters button

  • Create an Action Control Button that applies filter settings, bookmark or what have you with ironPython.
  • You can see the details here on how to animate a Spotfire visualization document.getElementById('mySpotfireControly').firstChild.value = 10 document.getElementById('mySpotfireControlx').firstChild.value = 20 JS: var button=document.getElementById(button1) In the "light" theme, or in SF 6.X, you will need to define different colors for the button in both the HTML and JS. Note: I did this in SF 7.0 using the "dark" visual theme. I then used the following HTML and JS to iterate the property from 1-100. I set a data limiting custom expression =$ is a document property with type of integer set to a default value of 1. Since I don't have access to the dataset you are working with, I used a random dataset with an id column that ran from 1-100 instead of dates. So I approached your issue in the same fashion I approached my attempt to animate a scatterplot. "the IronPython engine locks Spotfire until execution is completed." Quoting niko from his answer to a similar question I had: Animating Data Changes in Tibco Spotfire ("CurrentStep",whichVal+1)ĭocument.Properties = itemFilter.Valueįrom my understanding, this cannot be done using IronPython. MyProp = DataProperty.CreateCustomPrototype("CurrentStep",0,DataType.Integer,DataPropertyAttributes.IsVisible|DataPropertyAttributes.IsEditable)ĭ(DataPropert圜lass.Column, myProp) WhichCol = itemFilter.DataColumnReference Import .ItemFilterįrom import FilterTypeIdentifiersįrom import DataProperty, DataType, DataPropertyAttributes, DataPropert圜lassįrom import MarkerLayer I've included the code below, I'm just learning IronPython and I'm not sure what I need to call to refresh a visualization. I have gotten the filter to step through 1/1-1/5 however, it doesn't update the map visualization as it progresses so all the user sees is a jump from 1/1 to 1/5 with a pause in between (I have a sleep timer in for each step). I am trying to create a button that when clicked will automatically go through a Date filter (starting on 1/1/15 say) and go through 1/2 -1/5 updating a map with the newly filtered marker layer as it steps through the function. Any help/insight would be greatly appreciated. I've been working on this issue for a couple of days and I can't figure out a fix.











    Spotfire add reset filters button