<?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 check a specific column name in tFileInputExcel by using talend studio in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372450#M135286</link>
    <description>&lt;P&gt;I assume you use entreprise edition not open source:&lt;/P&gt;&lt;P&gt;if yes you set one field in tfileInptexcel schema with type as dynamic. (you can name it excel_column_count for example)&lt;/P&gt;&lt;P&gt;and if you just want to count columns &lt;/P&gt;&lt;P&gt;in the tjavarow :&lt;/P&gt;&lt;P&gt;int counter =  (input_row.excel_column_count).getColumnCount();&lt;/P&gt;&lt;P&gt;globalMap.put("column_count",counter);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you add a an on subjob ok between tFileInputExcel and a tJava empty and after you can set a condition in a run if link ex:&lt;/P&gt;&lt;P&gt;(int)globalMap.get("column_count")==3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Oct 2021 13:50:38 GMT</pubDate>
    <dc:creator>gjeremy1617088143</dc:creator>
    <dc:date>2021-10-22T13:50:38Z</dc:date>
    <item>
      <title>How to check a specific column name in tFileInputExcel by using talend studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372444#M135280</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a two tFileInputExcel component. The first component have three columns names (A,B,C)and the second have &lt;/P&gt;&lt;P&gt;five columns names (A,B,C,D,E). How can I check if my tFileInputExcel have a specific column name ?&lt;/P&gt;&lt;P&gt;Example tFileInputExcel1---runif(contains column name D and C)---tmap1 or &lt;/P&gt;&lt;P&gt;tFileInputExcel1---runif(contains column name D and C)---tmap2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372444#M135280</guid>
      <dc:creator>LNYAKA1625749060</dc:creator>
      <dc:date>2024-11-15T23:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to check a specific column name in tFileInputExcel by using talend studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372445#M135281</link>
      <description>&lt;P&gt;Hi,i think dynamic shema is not supported for tFileInputExcel. Instead  maybe you can use custom component :&lt;/P&gt;&lt;P&gt;take a look on Jan Lolling excel components :&lt;/P&gt;&lt;P&gt;https://exchange.talend.com/#marketplaceproductoverview:marketplace=marketplace%252F1&amp;amp;p=marketplace%252F1%252Fproducts%252F542&amp;amp;pi=marketplace%252F1%252Fproducts%252F542%252Fitems%252F2998&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 07:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372445#M135281</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-10-22T07:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to check a specific column name in tFileInputExcel by using talend studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372446#M135282</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Are you trying to load unknown column data structure from your excel files?&lt;/P&gt;&lt;P&gt;As schemas must be defined during design, not at run time. How did you define your schema in tFileInputExcel component with unknown column data structure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 08:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372446#M135282</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-22T08:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to check a specific column name in tFileInputExcel by using talend studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372447#M135283</link>
      <description>&lt;P&gt;hello @Xiaodi Shi​&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to process an excel file in a folder. This excel file will be put by a user. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I have to process this file. There are two different treatments depending on the name of the column in the file. The first file has three columns (name, first name, age) and the second file has five columns (name, first name, age, sex, address).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is to check if the file deposited by the user contains the columns sex and age to know if it is the first file or the second file.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 08:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372447#M135283</guid>
      <dc:creator>LNYAKA1625749060</dc:creator>
      <dc:date>2021-10-22T08:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to check a specific column name in tFileInputExcel by using talend studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372448#M135284</link>
      <description>&lt;P&gt;@xdshi, maybe you now if dynamic schema was implemented for excel components on the latest version of studio?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if yes &lt;/P&gt;&lt;P&gt;you can use just one field in the fileinputexcel as dynamic type just read one line and in a main row linked tjavarow :&lt;/P&gt;&lt;P&gt;Dynamic columns = input_row.(your field name);&lt;/P&gt;&lt;P&gt;ArrayList&amp;lt;String&amp;gt; liste = new ArrayList&amp;lt;String&amp;gt;();&lt;/P&gt;&lt;P&gt;for (int i = 0; i &amp;lt; columns.getColumnCount(); i++)&amp;nbsp;&lt;/P&gt;&lt;P&gt; {&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt; DynamicMetadata columnMetadata = columns.getColumnMetadata(i);&lt;/P&gt;&lt;P&gt; String inp_col=columnMetadata.getName().toString();&lt;/P&gt;&lt;P&gt; liste.add(inp_col);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/P&gt;&lt;P&gt;then you can put the list of column name (here 'liste') in a globalvar and made your condtions on it after&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 09:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372448#M135284</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-10-22T09:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to check a specific column name in tFileInputExcel by using talend studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372449#M135285</link>
      <description>&lt;P&gt;Hello @guenneguez jeremy​&amp;nbsp;@Xiaodi Shi​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you show it to me via screenshots?&lt;/P&gt;&lt;P&gt;Also is it possible to show me how I can recover the number of columns in my excel file (My excel file has only one sheet).&lt;/P&gt;&lt;P&gt;So if I test for my first excel file having the columns (name, first name) I will have three columns and if I test for my second excel file having the columns (name, first name, sex, address) I will have five columns.&lt;/P&gt;&lt;P&gt;Something like :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tfileInputExcel---main link --&amp;gt; tjavarow---tsetGlobalvar----&amp;gt;first processing if number of columns equals 3 otherwise processing 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me to find how the code in tjavarow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 11:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372449#M135285</guid>
      <dc:creator>LNYAKA1625749060</dc:creator>
      <dc:date>2021-10-22T11:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to check a specific column name in tFileInputExcel by using talend studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372450#M135286</link>
      <description>&lt;P&gt;I assume you use entreprise edition not open source:&lt;/P&gt;&lt;P&gt;if yes you set one field in tfileInptexcel schema with type as dynamic. (you can name it excel_column_count for example)&lt;/P&gt;&lt;P&gt;and if you just want to count columns &lt;/P&gt;&lt;P&gt;in the tjavarow :&lt;/P&gt;&lt;P&gt;int counter =  (input_row.excel_column_count).getColumnCount();&lt;/P&gt;&lt;P&gt;globalMap.put("column_count",counter);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you add a an on subjob ok between tFileInputExcel and a tJava empty and after you can set a condition in a run if link ex:&lt;/P&gt;&lt;P&gt;(int)globalMap.get("column_count")==3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 13:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372450#M135286</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-10-22T13:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to check a specific column name in tFileInputExcel by using talend studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372451#M135287</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Yes, I have an enterprise version. I tried to count the number of columns in my excel file which has three columns and which is in a directory that I specified, but it does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached my job and the different components. Can you tell me where I am stuck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also how to put a sub job ok between my tfileinputexcel and my java component.&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000KBwMWAA1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156900i0DF69863127710BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000KBwMWAA1.png" alt="0695b00000KBwMWAA1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000KBwM2AAL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156859i776F83ABA5E11720/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000KBwM2AAL.png" alt="0695b00000KBwM2AAL.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 14:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372451#M135287</guid>
      <dc:creator>LNYAKA1625749060</dc:creator>
      <dc:date>2021-10-22T14:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to check a specific column name in tFileInputExcel by using talend studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372452#M135288</link>
      <description>&lt;P&gt;greetings from france , i'm french too, in the tjavaRow just write:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.out.println((input_row.header).getColumnCount());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to see if you have something&lt;/P&gt;&lt;P&gt;and don't use a tlogrow after&lt;/P&gt;&lt;P&gt;and delete output schema of tjavarow&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 14:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372452#M135288</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-10-22T14:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to check a specific column name in tFileInputExcel by using talend studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372453#M135289</link>
      <description>&lt;P&gt;Hello @guenneguez jeremy​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes i'm french.  It's work now.&lt;/P&gt;&lt;P&gt;But i have another question. I used a tfileinputexcel with one field (dynamic type). I will now to check if tfileinputExcel contains 10 columns, i retrieve its data in another excel file (tfileoutputxcel) by addiong to the first row the message "This file contains 10 columns" and the rest of rows remain unchanged in their respective columns&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000KBwdDAAT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129148i112A51CE0639DE4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000KBwdDAAT.png" alt="0695b00000KBwdDAAT.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 15:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-a-specific-column-name-in-tFileInputExcel-by-using/m-p/2372453#M135289</guid>
      <dc:creator>LNYAKA1625749060</dc:creator>
      <dc:date>2021-10-22T15:21:15Z</dc:date>
    </item>
  </channel>
</rss>

