- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Are you able to change the width of your columns?
Here is the final way i did it :
First of all, you have to double click on the ruler to open the Drawing Aids palettes (or go in the top menu -> palettes -> Drawing Aids) and set the Units to Points.
You need a tables and a structure, a table that will actually show the information, and a structure that will be imported from your program with the correct widths(columns to be hidden will have a value of 0.001 in the structure). The structure is hidden in the layout.
In your table initialize script, write something like this :
//Set the columns width using our imported structure.//Empty ones have a width of 0.001
var width = Concat(data.Page1.struct.col1, "pt ",
data.Page1.struct.col2, "pt ",
data.Page1.struct.col3, "pt ",
data.Page1.struct.col4, "pt ",
data.Page1.struct.col5, "pt ",
data.Page1.struct.col6, "pt ",
data.Page1.struct.col7, "pt ",
data.Page1.struct.col8, "pt ",
data.Page1.struct.col9, "pt ",
data.Page1.struct.col10, "pt")
Table.columnWidths=width
Explanation : You concatenate every rawValue of your table that contains the width of your columns with "pt " (the unit), this way you can set the widths of every columns in only one command (Table.columnWidths=width).
This should resize the whole column, including the header. (It works on my side)
Don't bother to ask if you have any other questions ![]()
Max
Views
Replies
Total Likes