<?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: Traspose in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93607#M43124</link>
    <description>Can i ask you why in the action "Collection Contains field" and then "Has field" it pass only 3 times instead of 6 times like the rows of collection 2?&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/194"&gt;@james.man&lt;/a&gt; ​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;andrea alfani&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 27 Jul 2020 09:16:00 GMT</pubDate>
    <dc:creator>VratHimbo</dc:creator>
    <dc:date>2020-07-27T09:16:00Z</dc:date>
    <item>
      <title>Traspose</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93604#M43121</link>
      <description>Hi team,&lt;BR /&gt;i'm new here!&lt;BR /&gt;I've used the "traspose collection" action (Utility - Collection Manipulation) from my FIRST COLLECTION to the SECOND COLLECTION.&lt;BR /&gt;Now i want, from the SECOND COLLECTION, create a THIRD COLLECTION with the same value of the first one.&lt;BR /&gt;I try to loop and use a calculation stage to store the result, but i'm not able to do this, some advice please?&lt;BR /&gt;&lt;BR /&gt;The second collection have the name of column in the first column and value in the second column&lt;BR /&gt;FIRST COLUMN&amp;nbsp; &amp;nbsp;SECOND COLUMN&lt;BR /&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Frank&lt;BR /&gt;Surname&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Zappa&lt;BR /&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;BR /&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mark&lt;BR /&gt;Surname&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Chin&lt;BR /&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;andrea alfani&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Jul 2020 14:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93604#M43121</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2020-07-23T14:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: Traspose</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93605#M43122</link>
      <description>If you mean that you want to "untranspose" Collection 2 so that it turns back into Collection 1, you'll need to do a lot of calculations.&lt;BR /&gt;&lt;BR /&gt;At a high level:&lt;BR /&gt;1. Figure out how many columns you have for Collection 2 and add them as fields in Collection 3&lt;BR /&gt;2. Loop over Collection 2 and write them to a new columns of Collection 3.&amp;nbsp; When you see that you've written enough columns in Collection 3, add a new row in Collection 3 and repeat&lt;BR /&gt;&lt;BR /&gt;I've attached an example of this.&amp;nbsp; Note that this only works for purely text fields.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;James Man&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;Asia/Hong_Kong&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Jul 2020 02:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93605#M43122</guid>
      <dc:creator>james.man</dc:creator>
      <dc:date>2020-07-27T02:12:00Z</dc:date>
    </item>
    <item>
      <title>RE: Traspose</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93606#M43123</link>
      <description>Yes, that's exactly what I was looking for.&lt;BR /&gt;I'm going to study the logic behind for a better understanding.&lt;BR /&gt;Just in case i haven't the column name how can i do the same thing but generically? So, without the collection.name for example?&lt;BR /&gt;Really appreciate your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Have a nice day&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;andrea&amp;nbsp;&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Jul 2020 07:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93606#M43123</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2020-07-27T07:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: Traspose</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93607#M43124</link>
      <description>Can i ask you why in the action "Collection Contains field" and then "Has field" it pass only 3 times instead of 6 times like the rows of collection 2?&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/194"&gt;@james.man&lt;/a&gt; ​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;andrea alfani&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Jul 2020 09:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93607#M43124</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2020-07-27T09:16:00Z</dc:date>
    </item>
    <item>
      <title>RE: Traspose</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93608#M43125</link>
      <description>It's because for Collection 2 we know that the rows will eventually repeat:&lt;BR /&gt;&lt;SPAN&gt;FIRST COLUMN&amp;nbsp; &amp;nbsp;SECOND COLUMN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Frank&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Surname&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Zappa&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mark&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Surname&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Chin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;So if I want to know how many fields/columns are in the un-transposed collection, I only need to read "FIRST COLUMN" until I see that there is a repeating value.&lt;BR /&gt;&lt;BR /&gt;For the Collection 2 loop:&lt;BR /&gt;Loop Row 1: Does the un-transposed collection have the "Name" column?&amp;nbsp; No, so add it as a field/column&lt;BR /&gt;Loop Row 2: Does the un-transposed collection have the "Surname" column?&amp;nbsp; No, so add it as a field/column&lt;BR /&gt;Loop Row 3: Does the un-transposed collection have the "ID" column?&amp;nbsp; No, so add it as a field/column&lt;BR /&gt;Loop Row 4: Does the un-transposed collection have the "Name" column?&amp;nbsp; Yes, so we know that we've already added all of the columns, and we can end the loop over Collection 2&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;James Man&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;Asia/Hong_Kong&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Jul 2020 23:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93608#M43125</guid>
      <dc:creator>james.man</dc:creator>
      <dc:date>2020-07-27T23:29:00Z</dc:date>
    </item>
    <item>
      <title>RE: Traspose</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93609#M43126</link>
      <description>&lt;P&gt;Thanks for your help &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/194"&gt;@james.man&lt;/a&gt; now it's totally clear.&lt;BR /&gt;Last question: can i iterate a collection through index column or only with column name? In that case, can i build (coding) it?&lt;/P&gt;
&lt;P&gt;Have a nice day,&lt;BR /&gt;AA​&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;andrea alfani&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jul 2020 07:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93609#M43126</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2020-07-28T07:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: Traspose</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93610#M43127</link>
      <description>There's no direct way of using an index for your column instead of a column name.&amp;nbsp; But it is always possible to use the "Utility - Collection Manipulation" VBO "&lt;SPAN&gt;&lt;SPAN&gt;Get Collection Fields" action.&amp;nbsp; The result of that will give something like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="24521.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/24657iF27F8D8133C1A641/image-size/large?v=v2&amp;amp;px=999" role="button" title="24521.png" alt="24521.png" /&gt;&lt;/span&gt;Then you can use this "column name collection" to perform looping&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;James Man&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;Asia/Hong_Kong&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jul 2020 00:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Traspose/m-p/93610#M43127</guid>
      <dc:creator>james.man</dc:creator>
      <dc:date>2020-07-29T00:29:00Z</dc:date>
    </item>
  </channel>
</rss>

