<?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 How to delete Empty Collection Columns in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-delete-Empty-Collection-Columns/m-p/77855#M29961</link>
    <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;Just a quick one. I have a collection with many empty columns at the end and i would like to delete them all.&lt;BR /&gt;Is there a possibility to do that? They are somehow dynamical displayed, sometimes there are data, and sometimes they don't have.&lt;BR /&gt;How can I do that?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Ionut Cohen&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ionut Cohen&lt;BR /&gt;RPA Developer&lt;BR /&gt;Luxoft Romania&lt;BR /&gt;Europe\Bucharest&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 03 Sep 2019 11:29:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-03T11:29:00Z</dc:date>
    <item>
      <title>How to delete Empty Collection Columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-delete-Empty-Collection-Columns/m-p/77855#M29961</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;Just a quick one. I have a collection with many empty columns at the end and i would like to delete them all.&lt;BR /&gt;Is there a possibility to do that? They are somehow dynamical displayed, sometimes there are data, and sometimes they don't have.&lt;BR /&gt;How can I do that?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Ionut Cohen&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ionut Cohen&lt;BR /&gt;RPA Developer&lt;BR /&gt;Luxoft Romania&lt;BR /&gt;Europe\Bucharest&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Sep 2019 11:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-delete-Empty-Collection-Columns/m-p/77855#M29961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-03T11:29:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to delete Empty Collection Columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-delete-Empty-Collection-Columns/m-p/77856#M29962</link>
      <description>&lt;P&gt;Here's a C# stage I wrote.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Edit: I apologize ahead of time for the inefficiency of this one, especially if there's a ton of columns. I'm keen to see if anyone has a better solution!&lt;BR /&gt;&lt;BR /&gt;Inputs:&lt;BR /&gt;Collection - Collection&lt;/P&gt;
&lt;P&gt;Outputs:&lt;BR /&gt;New Collection - Collection&lt;/P&gt;
&lt;PRE class="language-csharp"&gt;DataView dv &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; Collection&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;DefaultView&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token comment" spellcheck="true"&gt;//Label to prevent 'Collection was modified' errors	&lt;/SPAN&gt;
Out&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;foreach&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;DataColumn col &lt;SPAN class="token keyword"&gt;in&lt;/SPAN&gt; Collection&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Columns&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;col&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;DataType &lt;SPAN class="token operator"&gt;==&lt;/SPAN&gt; System&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Type&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetType&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"System.String"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
		dv&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;RowFilter &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; col&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Caption&lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;" =''"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;else&lt;/SPAN&gt;
		dv&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;RowFilter &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; col&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Caption&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ToString&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;" = null"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;dv&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Count &lt;SPAN class="token operator"&gt;==&lt;/SPAN&gt; Collection&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Rows&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Count&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
	&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;
		Collection&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Columns&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Remove&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;col&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
		&lt;SPAN class="token keyword"&gt;goto&lt;/SPAN&gt; Out&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;
New_Collection &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; Collection&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ami Barrett&lt;BR /&gt;Lead RPA Software Developer&lt;BR /&gt;Solai &amp;amp; Cameron&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Sep 2019 14:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-delete-Empty-Collection-Columns/m-p/77856#M29962</guid>
      <dc:creator>AmiBarrett</dc:creator>
      <dc:date>2019-09-03T14:26:00Z</dc:date>
    </item>
  </channel>
</rss>

