Quantcast
Viewing all articles
Browse latest Browse all 1103

Searching for item on multiple conditions

I have the following code that searches for two conditions on an item.  If I just search for one condition, say just Approved, it works.  But when I search for BOTH Approved and Incorporated, it does not work.  Anyone have an idea how I would say "search where the status is Incorporated OR status is Approved"?  The search is attempting to search where the status is BOTH equal to Incorporated and equal to Approved.

 

this.setProperty("status", "Incorporated, Approved");

this.setPropertyCondition("status", "eq");

return this;


Viewing all articles
Browse latest Browse all 1103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>