<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Filtering a collection in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Filtering-a-collection/m-p/79763#M31602</link>
    <description>Hi,Geoffrey!&lt;BR /&gt;&lt;BR /&gt;As&amp;nbsp;Pratyush said the problem seems to be related to syntxax. If the value you are searching on the Status column changes dynamically, than you should use a variable. If you will always filter the same status (Like Planned, In Process and New) than you can try:&lt;BR /&gt;&lt;BR /&gt;Option 1: "Status IN ('Planned','In Process','New')"&lt;BR /&gt;Option 2: "Status LIKE 'Planned'&amp;nbsp; OR Status LIKE 'In Process' OR Status LIKE 'New'"&lt;BR /&gt;&lt;BR /&gt;If you want to have a deeper understandind how this action works you can take a look in the pages below&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/pt-br/dotnet/api/system.data.datatable.select?view=netframework-4.8" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/pt-br/dotnet/api/system.data.datatable.select?view=netframework-4.8&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.csharp-examples.net/dataview-rowfilter/" target="_blank" rel="noopener"&gt;https://www.csharp-examples.net/dataview-rowfilter/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Diogo Furlan&lt;BR /&gt;Analyst&lt;BR /&gt;Grupo NC&lt;BR /&gt;America/Sao_Paulo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 07 Nov 2019 10:49:00 GMT</pubDate>
    <dc:creator>DiogoFurlan</dc:creator>
    <dc:date>2019-11-07T10:49:00Z</dc:date>
    <item>
      <title>Filtering a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filtering-a-collection/m-p/79761#M31600</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am having some issues with filtering a collection.&lt;/P&gt;
&lt;P&gt;Situation:&lt;BR /&gt;I have a collection that contains a column "Status". I need to filter this collection on that column but not on a single value. I need to filter this column on more than one values, for example "Planned", "In Process", "New", ...&lt;/P&gt;
&lt;P&gt;I can filter on a single value, but I cannot figure out the syntax for multiple values.. Pretty lame not?&lt;/P&gt;
&lt;P&gt;I am using the "Utility - Collection Manipulation" Business Object and the "Filter Collection" Action. In the "Filter" input I am using following expression:&lt;/P&gt;
&lt;PRE class="language-markup"&gt;"Status LIKE 'Planned'"&lt;/PRE&gt;
&lt;P&gt;This one works, but how do I manage to add the other values? Expressions like these won't work..&lt;/P&gt;
&lt;PRE class="language-markup"&gt;"Status LIKE 'Planned' OR 'In Process' OR 'New'"&lt;/PRE&gt;
&lt;PRE class="language-markup"&gt;"Status LIKE 'Planned'" OR "Status LIKE 'In Process'" OR "Status LIKE 'New'"&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;If somebody could help me out with this simple thing, that would be great!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Geoffrey Adam&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Nov 2019 15:04:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filtering-a-collection/m-p/79761#M31600</guid>
      <dc:creator>GeoffreyAdam</dc:creator>
      <dc:date>2019-11-06T15:04:00Z</dc:date>
    </item>
    <item>
      <title>RE: Filtering a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filtering-a-collection/m-p/79762#M31601</link>
      <description>Looks like a syntax problem. You'll need to treat 'Status' as a variable so that BP can compare the value of Status in each row against Planned / In Process / New.&lt;BR /&gt;You also don't need to use LIKE if you are not using wildcards&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;"[Status]='Planned' or &lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #7a7a7a; cursor: text; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;[Status]='In Process' or [Status]='New'&lt;/SPAN&gt;"&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pratyush Garikapati&lt;BR /&gt;ROM Architect&lt;BR /&gt;Blue Prism&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Nov 2019 05:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filtering-a-collection/m-p/79762#M31601</guid>
      <dc:creator>PratyushGarikap</dc:creator>
      <dc:date>2019-11-07T05:37:00Z</dc:date>
    </item>
    <item>
      <title>RE: Filtering a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filtering-a-collection/m-p/79763#M31602</link>
      <description>Hi,Geoffrey!&lt;BR /&gt;&lt;BR /&gt;As&amp;nbsp;Pratyush said the problem seems to be related to syntxax. If the value you are searching on the Status column changes dynamically, than you should use a variable. If you will always filter the same status (Like Planned, In Process and New) than you can try:&lt;BR /&gt;&lt;BR /&gt;Option 1: "Status IN ('Planned','In Process','New')"&lt;BR /&gt;Option 2: "Status LIKE 'Planned'&amp;nbsp; OR Status LIKE 'In Process' OR Status LIKE 'New'"&lt;BR /&gt;&lt;BR /&gt;If you want to have a deeper understandind how this action works you can take a look in the pages below&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/pt-br/dotnet/api/system.data.datatable.select?view=netframework-4.8" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/pt-br/dotnet/api/system.data.datatable.select?view=netframework-4.8&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.csharp-examples.net/dataview-rowfilter/" target="_blank" rel="noopener"&gt;https://www.csharp-examples.net/dataview-rowfilter/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Diogo Furlan&lt;BR /&gt;Analyst&lt;BR /&gt;Grupo NC&lt;BR /&gt;America/Sao_Paulo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Nov 2019 10:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filtering-a-collection/m-p/79763#M31602</guid>
      <dc:creator>DiogoFurlan</dc:creator>
      <dc:date>2019-11-07T10:49:00Z</dc:date>
    </item>
  </channel>
</rss>

