You need to sign in to do that
Don't have an account?

Implementing filter logic in Apex
Hi All,
Anybody implemented the filter logic like equals to, not equals to ,contains, does not contains, starts with & ends with in apex code & Visualforce page??
Please share sample code & references ASAP.
Please refer to below links.
http://blog.jeffdouglas.com/2010/02/22/soql-how-i-query-with-thee-let-me-count-the-ways/
http://www.salesforce.com/us/developer/docs/soql_sosl/index.htm
Thanks
Shailu
Hi Shailu,
Thank you for your reply.
Actually we want to implement the filter logic same as that of we use in Workflow. So do you have any references for the same????
I want to implement specifically for contains & does not contain functionality in operator field.
Thanks,
Sachin
Please use "LIKE" operator in the SOQL query in the apex. OR use SOSL query in apex.
Thanks,
Bujji