Quantcast
Viewing all articles
Browse latest Browse all 8627

Re: How to find the values in collection object

Gupta,

Write your execute rule like this:

 

TYPE

     MyCollection -> First Object Where "SearchFor" Rule is True

 

SearchFor rule is:

 

EQSTR

     MyObject -> MyString property

     "SEARCH VALUE"

 

SearchFor will be executed once for every object in the collection until a match is found by the TYPE function in the main rule.  The first line is the object type contained in MyCollection and the string property we want to search through.  The second line is the string we are searching for.

 

So, the above will return True if at least one object exists in the collection with the string "SEARCH VALUE" in the MyString property, otherwise False will be returned.

 

Think of the TYPE function as a WHERE EXISTS.  If the target path contained within TYPE is found, a Boolean True will be returned, and False if not.

 

Jason Latko - Senior Product Developer at SAP


Viewing all articles
Browse latest Browse all 8627

Trending Articles



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