<?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: Dynamic context variable value based on input row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326134#M95655</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;You can pass the value to context variables during run time. Please refer below post.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCj3dCAC" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Passing-variable-context-value-from-the-command-line/td-p/66042&lt;/A&gt;&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>Wed, 22 May 2019 17:40:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-22T17:40:58Z</dc:date>
    <item>
      <title>Dynamic context variable value based on input row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326133#M95654</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to give context variable value during runtime ,in tmap code will be like :&lt;/P&gt;&lt;P&gt;row5.context.myvalue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&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!&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 17:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326133#M95654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-22T17:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic context variable value based on input row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326134#M95655</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;You can pass the value to context variables during run time. Please refer below post.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCj3dCAC" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Passing-variable-context-value-from-the-command-line/td-p/66042&lt;/A&gt;&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>Wed, 22 May 2019 17:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326134#M95655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-22T17:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic context variable value based on input row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326135#M95656</link>
      <description>&lt;P&gt;Hi Nikhi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to pass the value at job level while&lt;BR /&gt;manually running it , that too with in row1.name Instead of this u want to&lt;BR /&gt;give row1.context.name where I can give context value at run time.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It is throwing an error now , is there any other way that i could achieve this.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;can you pls help&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Alekya&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 00:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326135#M95656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-23T00:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic context variable value based on input row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326136#M95657</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As per the&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;, yes we can pass context variable at run time. But you are stating as you are getting an error, please let us know what the actual error you are getting and what did you tried. If you let us know the details of your requirement, it will be easy to community members to give you the correct solution.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 13:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326136#M95657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-23T13:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic context variable value based on input row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326137#M95658</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;BR /&gt;i want to pass value like below : 
&lt;BR /&gt; 
&lt;BR /&gt;row1.context.variable --- in tmap.. 
&lt;BR /&gt; 
&lt;BR /&gt;i have elaborated below : 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCohsCAC#M98778" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Dynamic-Field-assignment-through-context-variabla/m-p/162033#M98778&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Alekya</description>
      <pubDate>Thu, 23 May 2019 13:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326137#M95658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-23T13:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic context variable value based on input row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326138#M95659</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; You are trying to define the schema at run time. Since Talend uses schema based processing, you will have to write custom code to parse the data if your column details are changing at runtime. In this case, you will have to define a metadata in advance and based on the combination, you will have to dynamically build them using java codes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; I would approach this in slighlt different way. I would try to use file formats which are flexible in nature like JSON or XML and will define all the columns as tags in the definition. So if a column is not there, corresponding tag will not be there. But still we will be able to parse the data easily since our definition includes all the tags in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Could you please try this method?&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 14:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326138#M95659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-23T14:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic context variable value based on input row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326139#M95660</link>
      <description>Hi Nikhil,&lt;BR /&gt;&lt;BR /&gt;can u please elaborate ur solution ,i haven't worked much with json files.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Alekya&lt;BR /&gt;</description>
      <pubDate>Thu, 23 May 2019 16:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326139#M95660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-23T16:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic context variable value based on input row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326140#M95661</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The JSON record looks like below. So you need to create a schema which will include all combination of columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;{"name":"John", "age":31, "city":"New York", "zipcode":"12345"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Once this schema is established, you can send the data with subset of it where some records will not have zipcode, some other without age etc.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; End of day, even though your schema is fluctuating, you will have have an idea of the list of columns which can come to target database. So if you establish all these columns inside a JSON or XML, you can handle the data processing easily.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.w3schools.com/js/js_json_intro.asp" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.w3schools.com/js/js_json_intro.asp&lt;/A&gt;&lt;/SPAN&gt;&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 17:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-context-variable-value-based-on-input-row/m-p/2326140#M95661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-23T17:16:27Z</dc:date>
    </item>
  </channel>
</rss>

