<?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: [resolved] Context variable in SQL syntax in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349254#M116255</link>
    <description>Hi diarux, 
&lt;BR /&gt;Use the fallowing syntax for using context variables in sql. 
&lt;BR /&gt;"SELECT * FROM \""+context.current_TABLE+"\"". 
&lt;BR /&gt;Make sure that you have to enable transmit whole context check box in setting of tRunJob in parent job. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Bhanu.</description>
    <pubDate>Thu, 24 Apr 2014 14:33:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-24T14:33:03Z</dc:date>
    <item>
      <title>[resolved] Context variable in SQL syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349249#M116250</link>
      <description>Hello.&lt;BR /&gt;Could anyone help me run the following SQL instruction please?&lt;BR /&gt;"SELECT *&lt;BR /&gt;FROM " + context.current_TABLE "&lt;BR /&gt;&lt;BR /&gt;Context variable "current_TABLE" is defined in the parent job.&lt;BR /&gt;Which is the error in my SQL syntax ?&lt;BR /&gt;Thank you very much.</description>
      <pubDate>Wed, 23 Apr 2014 16:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349249#M116250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-23T16:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Context variable in SQL syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349250#M116251</link>
      <description>You just seem to have an extra double-quote - context.current_TABLE "&lt;BR /&gt;I'd recommend not using "*" and naming your fields. It will have some heartache later.</description>
      <pubDate>Wed, 23 Apr 2014 19:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349250#M116251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-23T19:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Context variable in SQL syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349251#M116252</link>
      <description>diarux - and make sure you're passing your context variables from the Parent to the child by checking the checkbox on the tRunJob component (transmit whole context). Other than that, should be "SELECT * FROM " + context.current_TABLE</description>
      <pubDate>Wed, 23 Apr 2014 21:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349251#M116252</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-04-23T21:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Context variable in SQL syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349252#M116253</link>
      <description>Hello.&lt;BR /&gt;Even if I use the following syntax, I still have an error :&lt;BR /&gt;"SELECT * FROM " + context.current_TABLE&lt;BR /&gt;I passed my context variable from the Parent to the child. &lt;BR /&gt;Context variable "current_TABLE" is defined as follows :&lt;BR /&gt;((String)globalMap.get("row1.nom_table"))&lt;BR /&gt;I don't understand why it doesn't work.</description>
      <pubDate>Thu, 24 Apr 2014 13:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349252#M116253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-24T13:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Context variable in SQL syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349253#M116254</link>
      <description>You haven't actually said what the error is...</description>
      <pubDate>Thu, 24 Apr 2014 14:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349253#M116254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-24T14:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Context variable in SQL syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349254#M116255</link>
      <description>Hi diarux, 
&lt;BR /&gt;Use the fallowing syntax for using context variables in sql. 
&lt;BR /&gt;"SELECT * FROM \""+context.current_TABLE+"\"". 
&lt;BR /&gt;Make sure that you have to enable transmit whole context check box in setting of tRunJob in parent job. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Bhanu.</description>
      <pubDate>Thu, 24 Apr 2014 14:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349254#M116255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-24T14:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Context variable in SQL syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349255#M116256</link>
      <description>Hi diarux, &lt;BR /&gt;Please upload your current job screenshots into forum so that we can see if there is wrong setting in your work flow.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 25 Apr 2014 04:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349255#M116256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-25T04:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Context variable in SQL syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349256#M116257</link>
      <description>Hello.&lt;BR /&gt;Could you please take a look at the attached screenshot ?&lt;BR /&gt;Thank you for your help.</description>
      <pubDate>Mon, 28 Apr 2014 15:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349256#M116257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-28T15:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Context variable in SQL syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349257#M116258</link>
      <description>hi all, 
&lt;BR /&gt;no screenshoot available 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; (be sure about max size) 
&lt;BR /&gt;check the value passed by 'father job' to be sure it's not null 
&lt;BR /&gt;read some help from Talend : 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/search/all?query=Passing+a+value+from+a+parent+Job+to+a+child+Job&amp;amp;content-lang=en" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=Passing+a+value+from+a+parent+Job+to+a+child+Job&amp;amp;content-lang=en&lt;/A&gt; 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent</description>
      <pubDate>Mon, 28 Apr 2014 15:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349257#M116258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-28T15:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Context variable in SQL syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349258#M116259</link>
      <description>current_TABLE is defined in parent job as :&lt;BR /&gt;(String)globalMap.get("my-Table.nom_table")&lt;BR /&gt;num_utilisateur is defined in parent job as:&lt;BR /&gt;Integer.parseInt(jobName.substring(1,2))&lt;BR /&gt;Error message when running child job :&lt;BR /&gt;Exception in component tMSSqlInput_1&lt;BR /&gt;java.sql.SQLException: Syntaxe incorrecte vers 'FROM'&lt;BR /&gt;&lt;BR /&gt;Still doesn't work.</description>
      <pubDate>Mon, 28 Apr 2014 17:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349258#M116259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-28T17:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Context variable in SQL syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349259#M116260</link>
      <description>It must be a simple error.&lt;BR /&gt;Add a tContextDump just before your SQL call to check the values are set as you expect.</description>
      <pubDate>Mon, 28 Apr 2014 18:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Context-variable-in-SQL-syntax/m-p/2349259#M116260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-28T18:11:14Z</dc:date>
    </item>
  </channel>
</rss>

