<?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 extract and map dynamic fields in tmap? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217480#M13059</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the following code in tjavarow . Replace field with ur column name.Then connect to tmap and tfileoutputdelimited.Check the include headers option . u will get the field name and field name in the target file&lt;/P&gt;&lt;P&gt;----------------------------------------------------------&lt;BR /&gt;Dynamic columns = row1.dynamic;&lt;BR /&gt;&lt;BR /&gt;for (int i = 0; i &amp;lt; columns.getColumnCount(); i++) {&lt;BR /&gt;if(columns.getColumnMetadata(i).getName().equalsIgnoreCase("field")){&lt;BR /&gt;DynamicMetadata columnMetadata = columns.getColumnMetadata(i);&lt;BR /&gt;String field = Relational.ISNULL(columns.getColumnValue(i))?"Ravi":columns.getColumnValue(i).toString();&lt;BR /&gt;output_row.newColumn = field;&lt;BR /&gt;System.out.println(columnMetadata.getName() + ": " + field);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;output_row.dynamic = input_row.dynamic;&lt;/P&gt;&lt;P&gt;&amp;nbsp;-----------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Oct 2018 13:24:27 GMT</pubDate>
    <dc:creator>ravi999</dc:creator>
    <dc:date>2018-10-04T13:24:27Z</dc:date>
    <item>
      <title>How to extract and map dynamic fields in tmap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217474#M13053</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have taken multiple files with different schema using tFileList and passed it through tFiledelimitedInput&amp;nbsp; using dynamic schema. As i can see that by using the dynamic schema i get all the columns in a single column as a string separated by some delimiter. I want to extract the columns from the dynamic field and use it in tmap for joining or filtering the data further. How can i get those dynamic values in the form of schema. I also tried tExtractDynamicFields but for that we need the target schema but in my case the target schema will be same as the input schema which is dynamic and keeps changing. I need to compare those fields with another file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pragyawan&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217474#M13053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and map dynamic fields in tmap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217475#M13054</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Could you please let us know if this related topic helps?&lt;/P&gt; 
&lt;P&gt;&lt;A title="https://community.talend.com/t5/Design-and-Development/tMap-with-Dynamic-schema/m-p/43409" href="https://community.qlik.com/s/feed/0D53p00007vCqSDCA0" target="_self"&gt;https://community.talend.com/t5/Design-and-Development/tMap-with-Dynamic-schema/m-p/43409&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 09:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217475#M13054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-27T09:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and map dynamic fields in tmap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217476#M13055</link>
      <description>&lt;P&gt;This worked for one of my usecase. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 03:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217476#M13055</guid>
      <dc:creator>ravi999</dc:creator>
      <dc:date>2018-09-28T03:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and map dynamic fields in tmap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217477#M13056</link>
      <description>&lt;P&gt;Hello &lt;A href="https://community.qlik.com/s/profile/0053p000007LMuPAAW"&gt;@pragyawan&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Does it work for your use case?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 03:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217477#M13056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-28T03:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and map dynamic fields in tmap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217478#M13057</link>
      <description>&lt;P&gt;I can now extract the field name and value in tjavarow with the help of that code but now i need to write those field name and values in a file which i am facing trouble with.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 11:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217478#M13057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-04T11:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and map dynamic fields in tmap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217479#M13058</link>
      <description>&lt;P&gt;I have a destination file having only 2 columns i.e. field_name and Field_value and i want to store the extracted value in this file but i am not getting this. i am only able to get the last value of the iteration in the context variable&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 11:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217479#M13058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-04T11:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and map dynamic fields in tmap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217480#M13059</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the following code in tjavarow . Replace field with ur column name.Then connect to tmap and tfileoutputdelimited.Check the include headers option . u will get the field name and field name in the target file&lt;/P&gt;&lt;P&gt;----------------------------------------------------------&lt;BR /&gt;Dynamic columns = row1.dynamic;&lt;BR /&gt;&lt;BR /&gt;for (int i = 0; i &amp;lt; columns.getColumnCount(); i++) {&lt;BR /&gt;if(columns.getColumnMetadata(i).getName().equalsIgnoreCase("field")){&lt;BR /&gt;DynamicMetadata columnMetadata = columns.getColumnMetadata(i);&lt;BR /&gt;String field = Relational.ISNULL(columns.getColumnValue(i))?"Ravi":columns.getColumnValue(i).toString();&lt;BR /&gt;output_row.newColumn = field;&lt;BR /&gt;System.out.println(columnMetadata.getName() + ": " + field);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;output_row.dynamic = input_row.dynamic;&lt;/P&gt;&lt;P&gt;&amp;nbsp;-----------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 13:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-and-map-dynamic-fields-in-tmap/m-p/2217480#M13059</guid>
      <dc:creator>ravi999</dc:creator>
      <dc:date>2018-10-04T13:24:27Z</dc:date>
    </item>
  </channel>
</rss>

