test

Warning when upgrading to Spotfire 10

TIBCO has deprecated the JQueryUI Javascript library in the latest Spotfire 10.0 release

TIBCO Community pages show us how to use JQuery properly

Reset Zoom Sliders by looping through visuals and checking each visual type

#Reset zoom sliders
from Spotfire.Dxp.Application.Visuals import * 

#1 Loops through visuals
for vis in Application.Document.ActivePageReference.Visuals: 

  #1.1 check each visual type
  if vis.TypeId==VisualTypeIdentifiers.BarChart:

    #1.2 Reset zoom sliders
    vis.As[VisualContent]().XAxis.ZoomRange=AxisRange.DefaultRange
    vis.As[VisualContent]().YAxis.ZoomRange=AxisRange.DefaultRange

1 comment:

Archit Soni said...

Works like a charm..!

Thanks Jose :)