Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a auto numbered column in a table transform?

Ajay.Amrite July 3, 2023

I have several tables which are part of table excerpts, each table has a auto numbered column.

I am using a table transform to merge all these tables into one table on a different page.

I want to hide the original numbered column in the individual tables (see the image below) and create a new numbered column that is continuous across the rows across all the tables.

Any help will be much appreciated.

Screenshot 2023-07-03 144211.png

2 answers

5 votes
Katerina Rudkovskaya _Stiltsoft_
Atlassian Partner
July 4, 2023

Hi @Ajay.Amrite,

I assume that you have smth like this coming from your Table Excerpts:

Thu 3-1.png

So, you may use the ROWNUM() function in your Table Transformer macro:

SELECT ROWNUM() AS 'No',
*
FROM T*

Thu 3-2.png
Hope it helps your case.

0 votes
Markus Fredén
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2023

Hi @Ajay.Amrite ,

To achieve an auto-numbered column in a table transform in Confluence, you can follow these steps:

  1. Open the page where you want to create the merged table.
  2. Insert a new table on that page by clicking on the "+" button in the toolbar and selecting "Table."
  3. In the new table, add the necessary columns and rows to accommodate the merged data.
  4. Copy the individual tables from the source pages (the tables you want to merge) and paste them into the cells of the new table, placing each table in a separate row.
  5. Once you have pasted all the tables into the new table, you will have multiple columns with auto-numbering. To create a continuous auto-numbered column, follow the next steps:
  6. In the first cell of the new numbered column, enter the starting number manually (e.g., "1").
  7. Select the entire column by clicking on the column header (the gray box at the top of the column).
  8. Right-click on the selected column and choose "Table Cell Properties."
  9. In the "Cell Properties" dialog, click on the "Advanced" tab.
  10. In the "CSS class" field, enter a class name for the column, such as "continuous-numbering."
  11. Click "Apply" to save the changes.
  12. Repeat steps 6-11 for each subsequent table row where you want the auto-numbered column to appear.
  13. After you have applied the CSS class to all the desired rows, you can hide the original numbered column in each table. To do this, follow these steps for each individual table:
  • Select the original numbered column in the table.
  • Right-click on the selected column and choose "Delete Column."

Once you have completed these steps for all the tables, you will have a merged table with a continuous auto-numbered column.

/Markus

Ajay.Amrite July 3, 2023

Hi Markus,

I don't want to move my data from the other tables to one table. 

I am looking for a way to use a combination of 'table excerpt include' and 'table transformer'.

Currently I am using the SQL 

SELECT * FROM T*

Regards,

Ajay.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events