<?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: How to dynamically go through CSV file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-go-through-CSV-file/m-p/2296238#M68922</link>
    <description>&lt;P&gt;a simple way could be you read the file line by line&lt;/P&gt;&lt;P&gt;(you can use a tFileinputDelimited with € as split char for eg and only one column as type String on output)&lt;/P&gt;&lt;P&gt;, then you split the string by comma(yourString.Split(",")) then you can set the first split for UserId, the second for Entitlements and you concatenate all the other for Entitlements&lt;/P&gt;&lt;P&gt; in a tJavaRow for eg:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String[] arrays=&lt;/P&gt;&lt;P&gt;(input_row.newColumn).split(",");&lt;/P&gt;&lt;P&gt;String ent = "";&lt;/P&gt;&lt;P&gt;for(int i=0;i&amp;lt; arrays.length;i++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if(i&amp;gt;1)&lt;/P&gt;&lt;P&gt;ent = ent + arrays[i] + ",";&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;output_row.UserId = arrays[0];&lt;/P&gt;&lt;P&gt;output_row.Name = arrays[1];&lt;/P&gt;&lt;P&gt;output_row.Entitlements = ent.replaceAll(",$","");&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2022 07:27:56 GMT</pubDate>
    <dc:creator>gjeremy1617088143</dc:creator>
    <dc:date>2022-04-11T07:27:56Z</dc:date>
    <item>
      <title>How to dynamically go through CSV file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-go-through-CSV-file/m-p/2296236#M68920</link>
      <description>&lt;P&gt;So I have CSV file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;UserId,Name,Entitlements&lt;/B&gt;&lt;/P&gt;&lt;P&gt;user1,Second User,Super Admin&lt;/P&gt;&lt;P&gt;user2,,Super Admin, QA Analyst&lt;/P&gt;&lt;P&gt;user3,First Last,Super Admin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case in the third and so on column will be entitlements, some users will have only 1 some will have multiple. How could I make sure these are included when I do a tFileInputDelimted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would I have to have my schema be = to the Most number of entitlements a person can have? Or is there a way to make it so that after the first 2 columns everything else is going to be an Entitlement by default, without having to create more columns in my schema?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-go-through-CSV-file/m-p/2296236#M68920</guid>
      <dc:creator>JayZ1</dc:creator>
      <dc:date>2024-11-15T23:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically go through CSV file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-go-through-CSV-file/m-p/2296237#M68921</link>
      <description>&lt;P&gt;Hi @Harjot Toor​&amp;nbsp;, do you work on a suscribed edition of talend or open studio ?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 07:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-go-through-CSV-file/m-p/2296237#M68921</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-04-11T07:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically go through CSV file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-go-through-CSV-file/m-p/2296238#M68922</link>
      <description>&lt;P&gt;a simple way could be you read the file line by line&lt;/P&gt;&lt;P&gt;(you can use a tFileinputDelimited with € as split char for eg and only one column as type String on output)&lt;/P&gt;&lt;P&gt;, then you split the string by comma(yourString.Split(",")) then you can set the first split for UserId, the second for Entitlements and you concatenate all the other for Entitlements&lt;/P&gt;&lt;P&gt; in a tJavaRow for eg:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String[] arrays=&lt;/P&gt;&lt;P&gt;(input_row.newColumn).split(",");&lt;/P&gt;&lt;P&gt;String ent = "";&lt;/P&gt;&lt;P&gt;for(int i=0;i&amp;lt; arrays.length;i++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if(i&amp;gt;1)&lt;/P&gt;&lt;P&gt;ent = ent + arrays[i] + ",";&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;output_row.UserId = arrays[0];&lt;/P&gt;&lt;P&gt;output_row.Name = arrays[1];&lt;/P&gt;&lt;P&gt;output_row.Entitlements = ent.replaceAll(",$","");&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 07:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-go-through-CSV-file/m-p/2296238#M68922</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-04-11T07:27:56Z</dc:date>
    </item>
  </channel>
</rss>

