Wrapping a Table-Plus macro around a Report Macro

Ken Jessen
Contributor
December 4, 2013

Similar to: https://answers.atlassian.com/questions/141319/table-plus-sorting-arrangement-feature-not-working-when-used-with-detailed-summary-macro-confluence?page=1#240513

I am trying to get a table-plus macro to sort a report macro

Confluence 5.3.

Table plugin 6.1

Report Tabel Macro

My code is a Table-Plus macro wrapping a Report Table macro.

7 answers

1 accepted

0 votes
Answer accepted
AndreasS
Contributor
December 7, 2013

What is your problem/error message?

If you are interessting, you can also try to use Tableenhancer for Confluence (see https://marketplace.atlassian.com/plugins/com.tngtech.confluence.plugins.tableenhancer) which is completely open source and able to be used with any table, even generated ones ;)

Ken Jessen
Contributor
December 7, 2013

Hmmmmm. I'm using this in a template and getting two errors

On the preview:

Tableenhancer

Icon

com.tngtech.confluence.plugins.tableenhancer.warning.noTableFound

On the page itself:

Tableenhancer

Icon

com.tngtech.confluence.plugins.tableenhancer.warning.firstRowMustBeHeadingToSortTable

The first row of the report is blank, and every second row is blank as well.

AndreasS
Contributor
December 8, 2013

Which Confluence version do you need since I can't reproduce it with v5.2.3.

(Screenshot of report macro wrapped into tableenhancer and initial sorting on column 3)

Ken Jessen
Contributor
December 8, 2013

Sorry. Confluence 5.3. Scaffolding 5.0.10. Reporting 4.2.3.

AndreasS
Contributor
December 8, 2013

Unfortunately, my example works, see

May you give me an example source code (e.g. using Confluence Source Editor)?

2 votes
Andrey Khaneev _StiltSoft_
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.
October 29, 2015

You can try Table Filter's default sorting order option.

0 votes
Ken Jessen
Contributor
December 10, 2013

It happens. My work around is to put an empty 1 line, header only, table in the 'report empty' macro. Good enough for now. Thx.

AndreasS
Contributor
December 12, 2013

Fair enough, if you have further problems, don't hesitate to contact us via opening an issue on https://tngtech-oss.atlassian.net/browse/TABENH.

0 votes
Ken Jessen
Contributor
December 10, 2013

One more issue. When the table is empty, I get the following error:

Tableenhancer

Icon

com.tngtech.confluence.plugins.tableenhancer.warning.noTableFound

It would be nice to avoid this.

AndreasS
Contributor
December 10, 2013

Hi Ken,

this is currently intended. How often do you have a case like that?

Cheers,
Andreas

0 votes
Ken Jessen
Contributor
December 9, 2013

I am using this as part of a report on 'child' pages. As a result, when the page tree is empty, the report looks awful - quite shrunk down. As the tree gets populated, it looks better.

If there are some abnormal fields, the table can look bad too.

Thanks very much for your help.

0 votes
Ken Jessen
Contributor
December 9, 2013

Ahhh. I had the 'new column' box ticked on my first table column. Works now.

As a feature request, I would love to be able to specify the widths of each column as a % of the screen width.

AndreasS
Contributor
December 9, 2013

Great :)

I have added the feature request, see https://tngtech-oss.atlassian.net/browse/TABENH-10. Do you have serious problem with the column width? Usually this should work automatically to max 100% of width and I am sure about the use case and/or priority?

0 votes
Ken Jessen
Contributor
December 7, 2013

Hmmmmm. I'm using this in a template and getting two errors

On the preview:

Tableenhancer

Icon

com.tngtech.confluence.plugins.tableenhancer.warning.noTableFound

On the page itself:

Tableenhancer

Icon

com.tngtech.confluence.plugins.tableenhancer.warning.firstRowMustBeHeadingToSortTable

The first row of the report is blank, and every second row is blank as well.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events