Reputation: 156
I am trying to apply more than three filter criteria on Query. I came to know that this is possible using executeWithArray. Can someone share example of it? I need to apply more than three filters involving different columns.
Upvotes: 1
Views: 391
Reputation: 156
I am able to apply more than three filter in query if I make filter string using the direct criteria:
Example: I added isClosed=='N'
criteria directly in the filter string.
query.setFilter("trackerId == trackerParam && projectId == projParam &&
codeListIds.contains(filId) && isClosed=='N'");
Still, Query can max three parameters only:
query.declareParameters("Long trackerParam,Long projParam,Long filId");
Upvotes: 0
Reputation: 21357
Assuming you are using Java. There are a lot of examples on the Queries and Indexes page, and it explains the restrictions involving the different filters (under "Restrictions on Queries"). A quick summary:
Upvotes: 1