Filter on table-data entries via expanding-reporter
I am currently trying to report on row I entered in a table-data. With this I am quite succesful using the code:
{noformat}
{report-table}
{expanding-reporter:data:communication|as=table}
{local-reporter:@self}
{local-reporter}
{expanding-reporter}
{report-header}
A header
{report-header}
{report-column:title=Finding}{report-info:expanded:table > data:findingscommunication}{report-column}
{report-empty}{report-empty}
{report-table}
{noformat}
However I do not want show any report, i.e. who anything written in the report-empty macro if none of the findingscommunication has any entry. Using the {text-filter:data:findingscommunication|required=true} filter outside the local-reporter, but inside the expanding-reporter only prevents the report from being shown, if no rows are open in the table-data.
This is indeed fine, but I want a filter, that does not show anything even if multiple empty rows in the {table-data:name=communications} are open.
Advice at this stage is greatly appreciated,
Robert
{noformat}
{report-table}
{expanding-reporter:data:communication|as=table}
{local-reporter:@self}
{local-reporter}
{expanding-reporter}
{report-header}
A header
{report-header}
{report-column:title=Finding}{report-info:expanded:table > data:findingscommunication}{report-column}
{report-empty}{report-empty}
{report-table}
{noformat}
However I do not want show any report, i.e. who anything written in the report-empty macro if none of the findingscommunication has any entry. Using the {text-filter:data:findingscommunication|required=true} filter outside the local-reporter, but inside the expanding-reporter only prevents the report from being shown, if no rows are open in the table-data.
This is indeed fine, but I want a filter, that does not show anything even if multiple empty rows in the {table-data:name=communications} are open.
Advice at this stage is greatly appreciated,
Robert
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Hi Robert,
I'm not quite sure under what circumstances you want something shown and/or what you want it to display. Could you perhaps provide a couple of examples of what you want it to look like with and without data in 'findingscommunication'? -
Hi David,
since I am using a scaffold template I cannot paste you asnippet of wiki markup. However I shall try to explain best verbally only.
Given a table-data with initialRows=5 and no entries, this table data can, but does not need to filled with data by the user.
So I may be, that all rows, which in the tabel-data are named 'findingscommunication' contain text data. In this case I want a certain report-header to show up along with the report-table.
In the other extreme, it may be the case, that the user does not enter any data in the rows of the table-data.
If the user does not delete the initial rows presented to him, the report on the rows findingscommunication is not empty, because there are rows existing in the table-data with the respective name, even though they are empty.
So in total I want the report to by an empty report, when table-data:name=communcation does not contain any entries in its rows, even though many rows might exist.
Hope that helps.
Thank you so much for your time David! -
Inappropriate?Sorry David,
but I just realised that the code above does exactly what I wanted. I had a typo just somewhere in a word 'finding'.
I hope I leave you with some idea, of what I wanted and why the makrup above works nicely.
Best,
Robert
I’m happy
1 person says
this answers the question
-
Inappropriate?Ok, great :)
Loading Profile...



EMPLOYEE