How to filter with collection-filter and many filter criteria?
Hi,
I have the following problem.
I want to filter based on the following scaffold form:
||Schlagwörter: | {list-data:schlagwoerter_schiffe|type=check|multiple=true|separator=" / "}{report-block}
{expanding-reporter:data:schlagwoerter_bilder_schiffe|as=schlagwort_liste}
{content-reporter:scope=Schlagwörter Bilder}
{content-reporter}
{text-sort:data:Schlagwort|mode=natural|order=ascending}
{expanding-reporter}
{report-body:injected=true}{list-option}%expanded:schlagwort_liste > data:Schlagwort%{list-option}{report-body}
{report-block}
{list-data}
{list-data:schlagwoerter_orte|type=check|multiple=true|separator=" / "}
{report-block}
{expanding-reporter:data:schlagwoerter_bilder_orte|as=schlagwort_liste}
{content-reporter:scope=Schlagwörter Bilder}
{content-reporter}
{text-sort:data:Schlagwort|mode=natural|order=ascending}
{expanding-reporter}
{report-body:injected=true}{list-option}%expanded:schlagwort_liste > data:Schlagwort%{list-option}{report-body}
{report-block}
{list-data} |
With this scaffold the user can select different search criteria. For example ship type A and location B.
This data is used in the following report:
{report-on:injected=true}
{report-table}
{local-reporter:page:children|source=Bilder}
{collection-filter:data:Schlagwoerter > @all|matchItems=any|matchFilter=any}
{text-filter:entry:value|include=(?i).*%data:schlagwoerter_orte%.*}
{text-filter:entry:value|include=(?i).*%data:schlagwoerter_schiffe%.*}
{collection-filter}
{local-reporter}
{report-column:title=Bild}{report-link:page:url}{report-image:data:Image > reference:value > attachment:download path|width=160px|height=120px}{report-link}{report-column}
{report-column:title=Erfasst am}{report-info:page:creation date|format=yyyy-MM-dd}{report-column}
{report-table}
{report-on}
This report works fine as long as only one criteria is select from above scaffold. If more than one criteria is selected the report doesn't find anything.
Is it possible to search with more than one search criteria?
I have the following problem.
I want to filter based on the following scaffold form:
||Schlagwörter: | {list-data:schlagwoerter_schiffe|type=check|multiple=true|separator=" / "}{report-block}
{expanding-reporter:data:schlagwoerter_bilder_schiffe|as=schlagwort_liste}
{content-reporter:scope=Schlagwörter Bilder}
{content-reporter}
{text-sort:data:Schlagwort|mode=natural|order=ascending}
{expanding-reporter}
{report-body:injected=true}{list-option}%expanded:schlagwort_liste > data:Schlagwort%{list-option}{report-body}
{report-block}
{list-data}
{list-data:schlagwoerter_orte|type=check|multiple=true|separator=" / "}
{report-block}
{expanding-reporter:data:schlagwoerter_bilder_orte|as=schlagwort_liste}
{content-reporter:scope=Schlagwörter Bilder}
{content-reporter}
{text-sort:data:Schlagwort|mode=natural|order=ascending}
{expanding-reporter}
{report-body:injected=true}{list-option}%expanded:schlagwort_liste > data:Schlagwort%{list-option}{report-body}
{report-block}
{list-data} |
With this scaffold the user can select different search criteria. For example ship type A and location B.
This data is used in the following report:
{report-on:injected=true}
{report-table}
{local-reporter:page:children|source=Bilder}
{collection-filter:data:Schlagwoerter > @all|matchItems=any|matchFilter=any}
{text-filter:entry:value|include=(?i).*%data:schlagwoerter_orte%.*}
{text-filter:entry:value|include=(?i).*%data:schlagwoerter_schiffe%.*}
{collection-filter}
{local-reporter}
{report-column:title=Bild}{report-link:page:url}{report-image:data:Image > reference:value > attachment:download path|width=160px|height=120px}{report-link}{report-column}
{report-column:title=Erfasst am}{report-info:page:creation date|format=yyyy-MM-dd}{report-column}
{report-table}
{report-on}
This report works fine as long as only one criteria is select from above scaffold. If more than one criteria is selected the report doesn't find anything.
Is it possible to search with more than one search criteria?
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?If you set 'matchFilter=any', it's supposed to pass if one or more pass. It's not supposed to be an exclusive or. If that's how it's working there is a bug somewhere. Could you create an issue in our bug reporter, and we'll follow it up from there.
http://greenhouse.customware.net/jira...
Thanks.
Loading Profile...




EMPLOYEE