Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Scaffolding & reporting plugin

Gabriel Sejournant October 10, 2011

I have a first table and I want to have on it a report table of three values off my scafoold datas on children pages.

In my children pages, I'm using :


{repeating-data:td|initialRows=1}

*First* {text-data:Nb1|type=line}Nom de la tâche{text-data}

*Second :* {text-data:Nb2|type=line}Resonsable{text-data}

*Third* : {text-data:Nb3|type=line}Pourcentage d'avancement{text-data}

*Commentaire :*

\\

_{text-data:Com|type=area}Commentaires{text-data}_

----

{repeating-data}

I wanted to have A table report with the 3 first values on my first page, so i wrote :

{report-table}

{content-reporter:space=@self}

{content-reporter}

{report-header}{center}*Report Table*{center}{report-header}

{report-column:title=First}{report-info:data:Nb1|link=true}{report-column}

{report-column:title=Second}{report-info:data:Nb2}{report-column}

{report-column:title=Third}{report-info:data:Nb3}{report-column}

{report-table}{column}

But It doesn't work !

What am I wrong ?

What to do to correct it and to have my table with the 3 scaffold values of children pages ?

1 answer

0 votes
David Peterson
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 10, 2011

Hi Gabi,

You need to tell reporting to loop through your 'tb' repeating-data value to get at the fields inside. If you're going direct for the sub-contents, you'll need to expand on the field as well. Eg:

{report-table}

{expanding-reporter:data:td|as=td}

{local-reporter:page:children}

{text-sort:page:title}

{local-reporter}

{expanding-reporter}

{report-column:title=First}{report-info:expanded:td > data:Nb1}{report-column}

{report-column:title=Second}{report-info:expanded:td > data:Nb2}

{report-empty}_No 'td' rows are available._{report-empty}

{report-table}

Hope that helps!

Gabriel Sejournant October 11, 2011

It's better, but i have the message of empty fileds but I know that on my three children pages I have scaffold data with values that match with the data report.

I just added 2 {report-column} to your code, is their something else to do I forgot ?

{report-table}

{expanding-reporter:data:td|as=td}

{local-reporter:page:children}

{text-sort:page:title}

{local-reporter}

{expanding-reporter}

{report-column:title=First}{report-info:expanded:td > data:Nb1}{report-column}

{report-column:title=Second}{report-info:expanded:td > data:Nb2}{report-column}

{report-empty}_No 'td' rows are available._{report-empty}{report-column}

{report-table}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events