<?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 write context variable dynamically to tFileInputDelimited in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-context-variable-dynamically-to-tFileInputDelimited/m-p/2277424#M53206</link>
    <description>Great!
&lt;BR /&gt;
&lt;A href="https://community.qlik.com/s/profile/0053p000007LOmCAAW"&gt;@marskid4u&lt;/A&gt;, thanks to mark your case as solved</description>
    <pubDate>Thu, 25 Oct 2018 12:30:16 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2018-10-25T12:30:16Z</dc:date>
    <item>
      <title>How to write context variable dynamically to tFileInputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-context-variable-dynamically-to-tFileInputDelimited/m-p/2277420#M53202</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my job design,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tFileInputDelimited_1 -&amp;gt; tFlowtoIterate_1 -&amp;gt; tJavaFlex -&amp;gt; tFileInputDelimited_2 -&amp;gt; tJavaRow -&amp;gt; tFlowtoIterate_2 -&amp;gt; tHiveInput -&amp;gt; tFileOutputDelimited_1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am setting a context variable as below in the tJavaRow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;System.out.println("Value Of Input: "+input_row.table_name);
globalMap.put("varTOP", input_row.table_name);
System.out.println("Value Of GlobalVar: "+globalMap.get("table_name"));&lt;/PRE&gt;
&lt;P&gt;My problem is,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to send the context value of "table_name" dynamically to tFileOutputDelimited_1 and append along with each output record.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg:-&amp;lt;table_name&amp;gt;-&amp;lt;result_set&amp;gt; ( i am using the delimiter as "-")&lt;/P&gt;
&lt;P&gt;emp-1-firstname-lastname-3545-address-phone-email&lt;/P&gt;
&lt;P&gt;dept-1-hghg-jkh-546-dpet-trtr&lt;/P&gt;
&lt;P&gt;..&lt;/P&gt;
&lt;P&gt;..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest how to send that contextVariable and append in the tFileOutputDelimited.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-context-variable-dynamically-to-tFileInputDelimited/m-p/2277420#M53202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to write context variable dynamically to tFileInputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-context-variable-dynamically-to-tFileInputDelimited/m-p/2277421#M53203</link>
      <description>&lt;P&gt;Why don't you add a pseudo-column to your query with the tablename?&lt;/P&gt;
&lt;PRE&gt;select 'EMP', code, firstname, lastname from EMP;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-context-variable-dynamically-to-tFileInputDelimited/m-p/2277421#M53203</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-10-23T14:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to write context variable dynamically to tFileInputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-context-variable-dynamically-to-tFileInputDelimited/m-p/2277422#M53204</link>
      <description>&lt;P&gt;just add one more column in tjavarow schema and set its value using globalMap.get("table_name") ,&lt;/P&gt;
&lt;P&gt;pass this flow as it is to tFlowToIterate and sync this schema to tHive and tfileoutputDelimited&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 09:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-context-variable-dynamically-to-tFileInputDelimited/m-p/2277422#M53204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T09:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to write context variable dynamically to tFileInputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-context-variable-dynamically-to-tFileInputDelimited/m-p/2277423#M53205</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOtOAAW"&gt;@CK395&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Sorry for the delay in the response.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt; - This is working for me, Surprising that, i missed this simple tweak.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOtOAAW"&gt;@CK395&lt;/A&gt;&amp;nbsp;- I will work on your reply as well, and i will let you know, if that is working&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 11:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-context-variable-dynamically-to-tFileInputDelimited/m-p/2277423#M53205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-25T11:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to write context variable dynamically to tFileInputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-context-variable-dynamically-to-tFileInputDelimited/m-p/2277424#M53206</link>
      <description>Great!
&lt;BR /&gt;
&lt;A href="https://community.qlik.com/s/profile/0053p000007LOmCAAW"&gt;@marskid4u&lt;/A&gt;, thanks to mark your case as solved</description>
      <pubDate>Thu, 25 Oct 2018 12:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-context-variable-dynamically-to-tFileInputDelimited/m-p/2277424#M53206</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-10-25T12:30:16Z</dc:date>
    </item>
  </channel>
</rss>

