Jump to content

Set default column width in cross table


Eszter Kovacs

Recommended Posts

I use a drop down list to add one or two columns to the cross table. I can easily change the column width to fitor a specific number but when I change my selection of used columns the width jumps back to the default settings (80) and my text won`t be visible.

Is there any way to change the default or keep the column widths as setted Any idea

Link to comment
Share on other sites

You can set it through iron python script as the api contains height,width properties that you can get as well as set.

https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-a...

Something like below:

from Spotfire.Dxp.Application.Visuals import *

vc = Crosstable.As[VisualContent]() # Crosstable visualization is the script parameter

vc.CellWidth=80

Link to comment
Share on other sites

  • 1 year later...

Hi @khushboo-r! How can I get the width I have tried using the following and get only the Object.

 

crossTable = viz.As[CrossTablePlot]()
w = crossTable.RowHeaderWidths
print w

 

This is the result of printing the variable w:

 

<Spotfire.Dxp.Application.Visuals.CrossTablePlot+HeaderSizeCollection object at 0x000000000000002D [spotfire.Dxp.Application.Visuals.CrossTablePlot+HeaderSizeCollection]>

 

How can I get the value (int)

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