Customer Banners (Ads) - SpiceUp. AX and SpotfireX Disclaimer



If you find this site useful and you want to support, buy me a coffee   to keep this site alive and without ads.

Hide crosstable header columns or rowheaders

from Spotfire.Dxp.Application.Visuals import *
from Spotfire.Dxp.Application.Visuals.Miniatures import *

#gt = VisualTypeIdentifiers.GraphicalTable
ct = VisualTypeIdentifiers.CrossTable


def hideColums(x,n,w):
   for vis in Document.ActivePageReference.Visuals:
     if vis.TypeId==x:
         vis = vis.As[Visualization]()
                          for i in range(0,n): 
                              vis.RowHeaderWidths[i] = w


hideColums(ct, 2, 0) #vis type, n=number of headers, width 




Thanks Jolene Robertson!

No comments: