Ability to define column width in a Page Properties Report table
Asked by Juan Carlos Toro:

I have seen several posts going a few years back requesting this feature to be added, and still there is no solution. Is there an update on this feature?


Answers:
author: Katerina Rudkovskaya [Stiltsoft]
body: Hi [@Juan Carlos Toro](/t5/user/viewprofilepage/user-id/5142324),  

If your company uses our [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=server&utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) app, you may use its [Table Transformer](https://docs.stiltsoft.com/tfac/dc-server/how-to-use-table-transformer-macro-42241552.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro to set width of the Page Properties Report macro columns.  
Please, check [this part](https://docs.stiltsoft.com/tfac/dc-server/advanced-table-cells-formatting-58426218.html#Advancedtablecellsformatting--Changingcolumnwidth?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) of our documentation (navigate to the "Changing column width" section).

comments: author: Juan Carlos Toro
body: I tried **Table Transformer** . But this only seems to work on a table created directly by the user in the Confluence page. It does not seem to apply to tables automatically generated by a **Page Property Report** macro.


author: Katerina Rudkovskaya [Stiltsoft]
body: Hi [@Juan Carlos Toro](/t5/user/viewprofilepage/user-id/5142324),  

For me everything works just fine:  

![Wed 14-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/240308iD5E8B885E3853718/image-size/large?v=v2&px=999 "Wed 14-1.png")  

SELECT \*,  
FORMATWIKI("{cell:width=400px}" + T1.'Company name' + "{cell}") AS 'Company name'  
FROM T\*  

![Wed 14-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/240309i96CB801C049F21EA/image-size/large?v=v2&px=999 "Wed 14-2.png")  

As you can see, the second column bacame really wide after the transformation. So, please check your SQL query once more: maybe there are any typos or smth.


author: Juan Carlos Toro
body: Hi [@Katerina Rudkovskaya \[Stiltsoft\]](/t5/user/viewprofilepage/user-id/3738229) ... Thanks a lot for your assistance. I did follow your latest instructions, and was able to modify the column width.

What would the SQL query be if I wanted to define the width of 2 (or more) columns?

Thanks in advance.

JC


author: Stiltsoft support
body: Hi [@Juan Carlos Toro](/t5/user/viewprofilepage/user-id/5142324) ,

Just apply the FORMATWIKI function for each required column of the table.

You may find more examples of the advanced table cells' formatting [here](https://docs.stiltsoft.com/tfac/dc-server/advanced-table-cells-formatting-58426218.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111).


author: Juan Carlos Toro
body: Thanks a lot [@Katerina Rudkovskaya \[Stiltsoft\]](/t5/user/viewprofilepage/user-id/3738229) and [@Stiltsoft support](/t5/user/viewprofilepage/user-id/5062270)

I was able to modified the width of multiple columns.

However, something else I found out while doing this, which is a major drawback to using this **Table Transformer** macro in combination with a **Page Property Report** macro: If there is any formatting in the fields in the Page Property Table, the Table Transformers converts the content to plain text.

E.g.:

If the field was formatted text with bold, bullet, bold text, etc... the formatting is gone.

If the field content was using macros like DATE, Status, etc.... all formatting is gone, and transformed to plain text.

So, it is a trade off that may be not worth it, and I am back to square one, as the whole point of is to be able to format the table to be presented to senior stakeholders.

Thanks again!


author: Stiltsoft support
body: Hi [@Juan Carlos Toro](/t5/user/viewprofilepage/user-id/5142324) ,

To preserve initial cell formatting (for example, links, text style, etc.), use commas instead of pluses inside your FORMATWIKI functions.

We do have such example in our [documentation](https://docs.stiltsoft.com/tfac/cloud/advanced-table-cells-formatting-58426218.html#Advancedtablecellsformatting--Preservinginitialcellformatting?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) (use the link from this or our previous answer and navigate to the "Preserving initial cell formatting" section).


author: Juan Carlos Toro
body: [@Stiltsoft support](/t5/user/viewprofilepage/user-id/5062270) ... Thanks a lot for this info. Worked like a charm!

JC


author: Kian Stack Mumo Systems
body: This appears to still be an outstanding issue! You can add your vote to this [ticket](https://jira.atlassian.com/browse/CONFSERVER-53330) with Atlassian.


Tags: confluence-server

filter

server

table

table-filter

table-filter-and-charts

table-transformer