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 ?
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!
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}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.