<?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: [resolved] how to get the column names in a data flow? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290555#M63826</link>
    <description>Hello Mathieu
&lt;BR /&gt;Try the code
&lt;BR /&gt;
&lt;PRE&gt;String columnName=null;&lt;BR /&gt;for (java.lang.reflect.Field field: row1.getClass().getDeclaredFields()) {&lt;BR /&gt;      columnName=field.getName().toLowerCase();&lt;BR /&gt;       System.out.println(columnName);&lt;BR /&gt;     }&lt;/PRE&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
    <pubDate>Tue, 05 May 2009 02:35:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-05-05T02:35:10Z</dc:date>
    <item>
      <title>[resolved] how to get the column names in a data flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290554#M63825</link>
      <description>Hi 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; , 
&lt;BR /&gt;I'd like to know how to get the column names of a table in a flow of data: excel, delimited or postgresql. 
&lt;BR /&gt;I have to compare them to the ones I should use. It could be via a tMap component. 
&lt;BR /&gt; I must follow a strict naming plan for files and their fields... 
&lt;BR /&gt;Would you know how to get that? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Mathieu</description>
      <pubDate>Sat, 16 Nov 2024 13:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290554#M63825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to get the column names in a data flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290555#M63826</link>
      <description>Hello Mathieu
&lt;BR /&gt;Try the code
&lt;BR /&gt;
&lt;PRE&gt;String columnName=null;&lt;BR /&gt;for (java.lang.reflect.Field field: row1.getClass().getDeclaredFields()) {&lt;BR /&gt;      columnName=field.getName().toLowerCase();&lt;BR /&gt;       System.out.println(columnName);&lt;BR /&gt;     }&lt;/PRE&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 05 May 2009 02:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290555#M63826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-05T02:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to get the column names in a data flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290556#M63827</link>
      <description>thanks shong, 
&lt;BR /&gt;It works well, I get the column names. 
&lt;BR /&gt;They're printed out in the system. 
&lt;BR /&gt;But how to export them in a delimited file? 
&lt;BR /&gt;or make a column name a data flow so that it can be compared to a reference table via a tMap component? 
&lt;BR /&gt;Thanks again 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;, 
&lt;BR /&gt;Mathieu</description>
      <pubDate>Tue, 05 May 2009 08:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290556#M63827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-05T08:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to get the column names in a data flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290557#M63828</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;But how to export them in a delimited file?&lt;BR /&gt;or make a column name a data flow so that it can be compared to a reference table via a tMap component?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Define context variables to store the column name.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 05 May 2009 09:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290557#M63828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-05T09:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to get the column names in a data flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290558#M63829</link>
      <description>OK thanks 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 05 May 2009 12:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290558#M63829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-05T12:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to get the column names in a data flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290559#M63830</link>
      <description>Hi,
&lt;BR /&gt;It works correctly but I would to have access to the value or at least I would like to know if the value is null/blank. It can be a problem because I will have different type. Do you have an answer?
&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 07 Aug 2013 11:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290559#M63830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-07T11:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to get the column names in a data flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290560#M63831</link>
      <description>Use tJavaRow instead of tJava, then:
&lt;BR /&gt;Object objValue = field.get(input_row);
&lt;BR /&gt;String fldType = field.getType().getName();
&lt;BR /&gt;Once you know the field type you can convert the value to the appropriate type for comparisons.</description>
      <pubDate>Thu, 08 Aug 2013 02:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290560#M63831</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-08-08T02:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to get the column names in a data flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290561#M63832</link>
      <description>plz can u tell me how to assign column names to context variable&lt;BR /&gt;thanks and regards&lt;BR /&gt;syed</description>
      <pubDate>Sat, 02 Aug 2014 16:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290561#M63832</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-08-02T16:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to get the column names in a data flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290562#M63833</link>
      <description>&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;plz can u tell me how to assign column names to context variable&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;thanks and regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;syed&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Sat, 02 Aug 2014 16:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290562#M63833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-02T16:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to get the column names in a data flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290563#M63834</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;plz can u tell me how to assign column names to context variable&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;thanks and regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;syed&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Plz Give me a quick reply</description>
      <pubDate>Mon, 04 Aug 2014 06:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290563#M63834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-04T06:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to get the column names in a data flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290564#M63835</link>
      <description>Hi Feroz,&lt;BR /&gt;Following code you can use in your tJavaRow...to get the column names to the context variable.&lt;BR /&gt;for (java.lang.reflect.Field field: row1.getClass().getDeclaredFields()) {&lt;BR /&gt;context.columnName = field.getName();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println("Field name is " + context.columnName ); &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;You can extend this code for your design...&lt;BR /&gt;Vaibhav</description>
      <pubDate>Mon, 04 Aug 2014 08:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290564#M63835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-04T08:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to get the column names in a data flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290565#M63836</link>
      <description>Hello,&amp;nbsp;&lt;BR /&gt;I have the same problem: My job consists on doing the mapping of a XML file to a Csv file.But I want to have a second Csv file which contains the columns' names and types of the first.&lt;BR /&gt;Do you have an answer please??&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 27 Oct 2014 15:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290565#M63836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-27T15:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to get the column names in a data flow?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290566#M63837</link>
      <description>Hi &lt;A href="http://www.talendforge.org/forum/profile.php?id=85857" target="_blank" rel="nofollow noopener noreferrer"&gt;rloukil&lt;/A&gt;,&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;But I want to have a second Csv file which contains the columns' names and types of the first.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Could you please elaborate your case with an example with input and expected output values? &lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Sabrina&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 28 Oct 2014 08:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-get-the-column-names-in-a-data-flow/m-p/2290566#M63837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-28T08:16:57Z</dc:date>
    </item>
  </channel>
</rss>

