<?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: Context variable in SQL Querry ToracleInput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Context-variable-in-SQL-Querry-ToracleInput/m-p/2248872#M33584</link>
    <description>Hi Louis,
&lt;BR /&gt;This is because the conevrted sql statement now contains your context.Periode as a constant. If you change your tOracleInput to the following it should work:
&lt;BR /&gt;
&lt;PRE&gt;"SELECT....&lt;BR /&gt;   FROM ....&lt;BR /&gt;   WHERE DATECLOTURE &amp;lt;&lt;BR /&gt;            (CASE WHEN '" + context.Periode + "'='MOIS_PASSE' &lt;BR /&gt;                  THEN LAST_DAY(ADD_MONTHS(TRUNC(SYSDATE),-1))&lt;BR /&gt;                  ELSE SYSDATE &lt;BR /&gt;             END)"&lt;/PRE&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Arno</description>
    <pubDate>Mon, 11 Jun 2012 14:28:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-11T14:28:18Z</dc:date>
    <item>
      <title>Context variable in SQL Querry ToracleInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variable-in-SQL-Querry-ToracleInput/m-p/2248871#M33583</link>
      <description>Hello, 
&lt;BR /&gt;I want to use parameter into a query for a ToracleInput component. 
&lt;BR /&gt; 
&lt;BR /&gt; "SELECT.... 
&lt;BR /&gt; FROM .... 
&lt;BR /&gt; WHERE DATECLOTURE &amp;lt; 
&lt;BR /&gt; (CASE WHEN " + context.Periode + "='MOIS_PASSE' 
&lt;BR /&gt; THEN LAST_DAY(ADD_MONTHS(TRUNC(SYSDATE),-1)) 
&lt;BR /&gt; ELSE SYSDATE 
&lt;BR /&gt; END)" 
&lt;BR /&gt;i have an error "non valid constant character".. 
&lt;BR /&gt;Thanks for your help.. 
&lt;BR /&gt;Louis</description>
      <pubDate>Mon, 11 Jun 2012 14:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variable-in-SQL-Querry-ToracleInput/m-p/2248871#M33583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-11T14:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Context variable in SQL Querry ToracleInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variable-in-SQL-Querry-ToracleInput/m-p/2248872#M33584</link>
      <description>Hi Louis,
&lt;BR /&gt;This is because the conevrted sql statement now contains your context.Periode as a constant. If you change your tOracleInput to the following it should work:
&lt;BR /&gt;
&lt;PRE&gt;"SELECT....&lt;BR /&gt;   FROM ....&lt;BR /&gt;   WHERE DATECLOTURE &amp;lt;&lt;BR /&gt;            (CASE WHEN '" + context.Periode + "'='MOIS_PASSE' &lt;BR /&gt;                  THEN LAST_DAY(ADD_MONTHS(TRUNC(SYSDATE),-1))&lt;BR /&gt;                  ELSE SYSDATE &lt;BR /&gt;             END)"&lt;/PRE&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Arno</description>
      <pubDate>Mon, 11 Jun 2012 14:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variable-in-SQL-Querry-ToracleInput/m-p/2248872#M33584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-11T14:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Context variable in SQL Querry ToracleInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variable-in-SQL-Querry-ToracleInput/m-p/2248873#M33585</link>
      <description>Thank you Arno !!! it's Ok !!&lt;BR /&gt;Regards,&lt;BR /&gt;Louis</description>
      <pubDate>Mon, 11 Jun 2012 14:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variable-in-SQL-Querry-ToracleInput/m-p/2248873#M33585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-11T14:57:45Z</dc:date>
    </item>
  </channel>
</rss>

