<?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 Dynamic Field assignment through context variabla in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Field-assignment-through-context-variabla/m-p/2329371#M98569</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a solution for below scenario :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;file as below :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;field1,field2,field3&lt;/P&gt;&lt;P&gt;1,2,3&lt;/P&gt;&lt;P&gt;4,5,6&lt;/P&gt;&lt;P&gt;7,8,9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want an output file like below :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;field4,field5,field6 -- these are column headers and in tmap i want to write something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.context.variable ---context variable is given while manually running the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically i want to give mapping dynamically .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;field1 is mapped to field4 sometimes , field 1 is mapped to field 5 sometimes ,&amp;nbsp; mapping information is given in another file .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mapping file will have source and target values like below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;source,target&lt;/P&gt;&lt;P&gt;filed1,field4&lt;/P&gt;&lt;P&gt;field2,field5&lt;/P&gt;&lt;P&gt;field3,field6&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mapping file values are stored in context variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mapping file values change each time and in tmap i should be able to map based on context variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am able to assign context variable values from the file but the part where mapping is done dynamically i am struggling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Alekya&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2019 13:35:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-23T13:35:48Z</dc:date>
    <item>
      <title>Dynamic Field assignment through context variabla</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Field-assignment-through-context-variabla/m-p/2329371#M98569</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a solution for below scenario :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;file as below :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;field1,field2,field3&lt;/P&gt;&lt;P&gt;1,2,3&lt;/P&gt;&lt;P&gt;4,5,6&lt;/P&gt;&lt;P&gt;7,8,9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want an output file like below :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;field4,field5,field6 -- these are column headers and in tmap i want to write something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.context.variable ---context variable is given while manually running the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically i want to give mapping dynamically .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;field1 is mapped to field4 sometimes , field 1 is mapped to field 5 sometimes ,&amp;nbsp; mapping information is given in another file .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mapping file will have source and target values like below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;source,target&lt;/P&gt;&lt;P&gt;filed1,field4&lt;/P&gt;&lt;P&gt;field2,field5&lt;/P&gt;&lt;P&gt;field3,field6&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mapping file values are stored in context variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mapping file values change each time and in tmap i should be able to map based on context variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am able to assign context variable values from the file but the part where mapping is done dynamically i am struggling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Alekya&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 13:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Field-assignment-through-context-variabla/m-p/2329371#M98569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-23T13:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field assignment through context variabla</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Field-assignment-through-context-variabla/m-p/2329372#M98570</link>
      <description>&lt;P&gt;Hi Alekya,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Please do not open multiple posts for same queries as it will waste the efforts of Talend community members. Already members are responding to your other post&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D73p000004klZYCAY#M98781" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Dynamic-context-variable-value-based-on-input-row/m-p/162036/highlight/false#M98781&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So could you please close this post and continue the discussion in already active post?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 14:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Field-assignment-through-context-variabla/m-p/2329372#M98570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-23T14:57:34Z</dc:date>
    </item>
  </channel>
</rss>

