Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Searching with filters cannot return no results

Avatar

Level 3

I am writing a custom component for searching tasks, I've added search filters to the search like:

     filter.addCondition("procVar.CompanyName", Operator.EQUALS, companyName, Connective.AND);

when there is exact match, the search results are correct, however, when there is no match for the filters,

the search returns all tasks, it seems never return null or no result.

how to return no results if there is no match for the criteria?

0 Replies

Avatar

Level 3

Silly me, it was using another filter to do the search.