<?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: Need some guide on passing the context variables in toracleinput component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272085#M49465</link>
    <description>&lt;P&gt;Hi Dhanabalan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Happy to know that the tip helped you to resolve your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Enjoy programming in Talend &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;Warm Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
    <pubDate>Wed, 28 Nov 2018 07:02:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-28T07:02:27Z</dc:date>
    <item>
      <title>Need some guide on passing the context variables in toracleinput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272079#M49459</link>
      <description>&lt;P&gt;I have store the below Sql query in Oracle table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table_Name: Sql_Template&lt;/P&gt;&lt;P&gt;Column1:Emp&lt;/P&gt;&lt;P&gt;Column2: "Select Code from "+context.column1+" where code=01"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job Flow:&lt;/P&gt;&lt;P&gt;tOracleInput_1 --&amp;gt; tmap --&amp;gt; tflowtoiterate --&amp;gt;tjavaflex&amp;nbsp; &amp;nbsp;------------------&amp;gt;&amp;nbsp; toracleInput_2&amp;nbsp; ----&amp;gt;tmap ---&amp;gt; tlogrow&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OncomponentOk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In toracleinput_1 component, I have wrote the below query,&lt;/P&gt;&lt;P&gt;"select column1,column2 from sql_template"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In tjavaflex component, I have wrote the below variables,&lt;/P&gt;&lt;P&gt;context.column1 = ((String)globalMap.get("out1.column1"));&lt;BR /&gt;context.column2 = ((String)globalMap.get("out1.column2"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In toracleinput_2 component, I have wrote the below one,&lt;/P&gt;&lt;P&gt;context.column2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error Message:&lt;/P&gt;&lt;P&gt;[FATAL]: flexmetrics.copy_of_t_flx_stage_delta_load_process_0_1.T_Stage_Delta_Load_Process - tDBInput_1 ORA-00900: invalid SQL statement&lt;/P&gt;&lt;P&gt;java.sql.SQLSyntaxErrorException: ORA-00900: invalid SQL statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not taking the context values in the second db component.&lt;/P&gt;&lt;P&gt;Please help to resolve the issue. It would be very helpful for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your immediate response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Nov 2018 17:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272079#M49459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-24T17:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on passing the context variables in toracleinput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272080#M49460</link>
      <description>&lt;P&gt;Helo Everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide an update on the above question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dhanabalan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 08:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272080#M49460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-25T08:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on passing the context variables in toracleinput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272081#M49461</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please share a screen shot of the job for the above flow? Please check tflowtoiterate is having the mapping of columns in correct manner and print the data to verify whether the data is coming?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 04:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272081#M49461</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-26T04:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on passing the context variables in toracleinput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272082#M49462</link>
      <description>&lt;P&gt;Hi Nikhil,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I pass the exact below query in toracleinput_2 component instead of context.column2,&amp;nbsp;&lt;/P&gt;&lt;P&gt;"SELECT CAND_CODE FROM "+context.Target_Table_Name+" WHERE CAND_CODE='C343j'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;m getting the correct value. When I use context, then m getting error.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 07:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272082#M49462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-26T07:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on passing the context variables in toracleinput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272083#M49463</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; It means that&amp;nbsp;&lt;SPAN&gt;context.column2 is not correctly populated with values. Could you please print this variable and see the value it is holding? It will give you an idea whether it is not having any value or it is having wrong column name.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; I hope it will give you a breakthrough for your problem. If the answer has helped you, please mark the topic as resolved? Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Warm Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Nikhil Thampi&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 07:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272083#M49463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-26T07:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on passing the context variables in toracleinput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272084#M49464</link>
      <description>&lt;P&gt;Hi Nikhil,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In tjavaflex, I use the below function to replace the context value in "Select" query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stmt=((String)globalMap.get("out1.column2"));&lt;BR /&gt;stmt=stmt.replace("context.column1",context.column1);&lt;BR /&gt;context.column2 =stmt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;m getting the expected values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much your inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhanabalan&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 06:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272084#M49464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-28T06:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guide on passing the context variables in toracleinput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272085#M49465</link>
      <description>&lt;P&gt;Hi Dhanabalan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Happy to know that the tip helped you to resolve your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Enjoy programming in Talend &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;Warm Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 07:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-some-guide-on-passing-the-context-variables-in-toracleinput/m-p/2272085#M49465</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-28T07:02:27Z</dc:date>
    </item>
  </channel>
</rss>

