<?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: Removing/Replacing text from a whole collection in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86590#M37420</link>
    <description>Hi Sohpie&lt;BR /&gt;&lt;BR /&gt;Did you ever find af sollution for this? I have the same issue.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tinna Holst Larsen&lt;BR /&gt;Koordinator&lt;BR /&gt;IBC International Business College&lt;BR /&gt;Europe/Copenhagen&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 08 Feb 2021 06:25:00 GMT</pubDate>
    <dc:creator>TinnaHolstLArsen</dc:creator>
    <dc:date>2021-02-08T06:25:00Z</dc:date>
    <item>
      <title>Removing/Replacing text from a whole collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86587#M37417</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have a collection which contains about 80 columns. Some of the values (across columns and rows) contain the value "-" and I want to replace all of these with nothing. Is there any way to do this? I can see there is a way to do this by each column but looking for a solution that will look for and replace that value within the whole collection without having to do 80 different actions. The only other way I could think would be to loop through and keep sending the different column name each time but again seems very long winded!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sophie Katherine Smith&lt;BR /&gt;HR Systems, Data and Quality Assurance Manager&lt;BR /&gt;Arup&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jun 2019 14:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86587#M37417</guid>
      <dc:creator>Sophie_Katherin</dc:creator>
      <dc:date>2019-06-19T14:22:00Z</dc:date>
    </item>
    <item>
      <title>RE: Removing/Replacing text from a whole collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86588#M37418</link>
      <description>You could adjust the code from the 'Utility - Collection Manipulation' action 'Remove dots from headers' to remove hyphens instead. At this point, it would be worth changing the hardcoded character to use an input parameter so that any character could be removed from headers in the future.&lt;BR /&gt;&lt;BR /&gt;For Each Column As DataColumn In Input_Collection.Columns&lt;BR /&gt; Column.ColumnName=Microsoft.Visualbasic.Replace(Column.ColumnName,"-","")&lt;BR /&gt;Next&lt;BR /&gt;Output_Collection = Input_Collection&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;3Ci @ Southern Company&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jun 2019 16:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86588#M37418</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2019-06-19T16:05:00Z</dc:date>
    </item>
    <item>
      <title>RE: Removing/Replacing text from a whole collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86589#M37419</link>
      <description>My fault. I just realized you mentioned you want the hyphens removed from the entire collection. In that case, you could convert the collection to CSV, use the Replace() function on the CSV text data item, and then convert back to Collection.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;3Ci @ Southern Company&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jun 2019 16:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86589#M37419</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2019-06-19T16:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: Removing/Replacing text from a whole collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86590#M37420</link>
      <description>Hi Sohpie&lt;BR /&gt;&lt;BR /&gt;Did you ever find af sollution for this? I have the same issue.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tinna Holst Larsen&lt;BR /&gt;Koordinator&lt;BR /&gt;IBC International Business College&lt;BR /&gt;Europe/Copenhagen&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Feb 2021 06:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86590#M37420</guid>
      <dc:creator>TinnaHolstLArsen</dc:creator>
      <dc:date>2021-02-08T06:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: Removing/Replacing text from a whole collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86591#M37421</link>
      <description>Hi Tinna,&lt;BR /&gt;&lt;BR /&gt;Here is a quick code stage that removes "-" from columns and rows. Keep in mind this can be done using loops in Blue Prism as well, but I find it faster to write it this way.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;foreach (DataColumn c in dtIn.Columns)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; c.ColumnName = c.ColumnName.Replace("-","");&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; foreach (DataRow r in dtIn.Rows)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r[c.ColumnName] = r[c.ColumnName].ToString().Replace("-","");&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;dtOut = dtIn;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nick LeGuerrier&lt;BR /&gt;Senior RPA Developer&lt;BR /&gt;MD Financial Management&lt;BR /&gt;Ottawa&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Feb 2021 15:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86591#M37421</guid>
      <dc:creator>NickLeGuerrier</dc:creator>
      <dc:date>2021-02-08T15:55:00Z</dc:date>
    </item>
    <item>
      <title>RE: Removing/Replacing text from a whole collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86592#M37422</link>
      <description>Thanks Nick! I have been needing that as well.&lt;BR /&gt;&lt;BR /&gt;Is it possible to alter the code, so it will only apply to the values of a specific column?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Karina Hansen&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Feb 2021 14:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86592#M37422</guid>
      <dc:creator>KarinaHansen</dc:creator>
      <dc:date>2021-02-09T14:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Removing/Replacing text from a whole collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86593#M37423</link>
      <description>Yes, definitely! Here you are:&lt;BR /&gt;&lt;BR /&gt;In this case columnName is an input which you can provide to the method to find the column name you are looking for.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;foreach (DataRow r in dtIn.Rows)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r[columnName] = r[columnName].ToString().Replace("-","");&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;}&lt;BR /&gt;&lt;BR /&gt;dtOut = dtIn;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nick LeGuerrier&lt;BR /&gt;Senior RPA Developer&lt;BR /&gt;MD Financial Management&lt;BR /&gt;Ottawa&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Feb 2021 14:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86593#M37423</guid>
      <dc:creator>NickLeGuerrier</dc:creator>
      <dc:date>2021-02-09T14:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: Removing/Replacing text from a whole collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86594#M37424</link>
      <description>&lt;P&gt;Hello Nick,&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;adding this code in a Blueprism code stage brings numerous errors, Can it be written in VB?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Victor Okorie&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Feb 2021 22:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86594#M37424</guid>
      <dc:creator>VictorOkorie</dc:creator>
      <dc:date>2021-02-26T22:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Removing/Replacing text from a whole collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86595#M37425</link>
      <description>Hi Victor,&lt;BR /&gt;&lt;BR /&gt;My VB is a little rusty, but I think this should do it:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;for each r as DataRow in dtIn.Rows&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; r(columnName) = r(columnName).ToString().Replace("-","")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;next&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;dtOut = dtIn&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nick LeGuerrier&lt;BR /&gt;Senior RPA Developer&lt;BR /&gt;MD Financial Management&lt;BR /&gt;Ottawa&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Mar 2021 14:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Removing-Replacing-text-from-a-whole-collection/m-p/86595#M37425</guid>
      <dc:creator>NickLeGuerrier</dc:creator>
      <dc:date>2021-03-01T14:09:00Z</dc:date>
    </item>
  </channel>
</rss>

