<?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: concatenate context variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225257#M17642</link>
    <description>Hi Naim
&lt;BR /&gt;In the first and second images, there both has a same name called DOS_formula_Query. I think tContextLoad don't load the right value for the key DOS_formula_Query, because both sheets have a same key DOS_formula_Query. Can you check it?
&lt;BR /&gt;Shong</description>
    <pubDate>Fri, 01 Feb 2013 09:37:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-01T09:37:37Z</dc:date>
    <item>
      <title>concatenate context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225251#M17636</link>
      <description>Hi everyone, 
&lt;BR /&gt;I have a scenario where I can save SQL statement "SELECT * FROM" in contextA and "TABLENAME" in contextB. 
&lt;BR /&gt;The thing is I want to concatenate these two context variables in query parameter for database input component? 
&lt;BR /&gt;Is it possible? 
&lt;BR /&gt;Thanks in advance! 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDQc.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132119iD6C63FC7B4B7AF56/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDQc.jpg" alt="0683p000009MDQc.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 28 Dec 2012 08:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225251#M17636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-28T08:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225252#M17637</link>
      <description>Hi
&lt;BR /&gt;What's your SQL statement looks like without context vairable?
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 28 Dec 2012 08:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225252#M17637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-28T08:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225253#M17638</link>
      <description>Hi Shong,
&lt;BR /&gt;It's just a simple SQL "SELECT * FROM EMPLOYEE" statement.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Rozie</description>
      <pubDate>Fri, 28 Dec 2012 08:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225253#M17638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-28T08:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225254#M17639</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi Shong,&lt;BR /&gt;It's just a simple SQL "SELECT * FROM EMPLOYEE" statement.&lt;BR /&gt;Regards,&lt;BR /&gt;Rozie&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;If the table name will be a variable, the query can be: 
&lt;BR /&gt;"select * from "+context.tableName 
&lt;BR /&gt;if the SQL has where condition, the query looks like: 
&lt;BR /&gt;"select * from "+context.tableName+" where id&amp;gt;10" 
&lt;BR /&gt;Hope this help you! 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 28 Dec 2012 16:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225254#M17639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-28T16:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225255#M17640</link>
      <description>Hi Rozie,&lt;BR /&gt;You can use tmap &amp;amp; in tmap join two columns using following function:- &lt;BR /&gt;row.column1+? ?+row.column2&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 29 Dec 2012 08:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225255#M17640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-29T08:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225256#M17641</link>
      <description>Hi, 
&lt;BR /&gt;I have a SQL statement such that 
&lt;BR /&gt; 
&lt;BR /&gt;select Q3.F0031 , Q4.F0171 , Q6.F1609,(Q3.F0031+Q3.F0032) as output 
&lt;BR /&gt;From STG_QSTN3 as Q3,STG_QSTN4 as Q4,STG_QSTN6 as Q6 
&lt;BR /&gt;where Q3.Estab_ID = Q4.Estab_ID 
&lt;BR /&gt;and Q3.Estab_ID = Q6.Estab_ID and Q4.Estab_ID = Q6.Estab_ID 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Using the technique of context variable, I defined the SQL statement as "context.DOS_formula_Query". 
&lt;BR /&gt;Then in the excel file I separate the SQL statement into different sheet where the "select" statement I put in the sheet1 and "From...Where" statement I put in the sheet2. 
&lt;BR /&gt;Using the context variable, I called upon these statement using "context.DOS_formula_Query". 
&lt;BR /&gt;Is it possible to do above job? I found that the "From..Where" statement cannot be read. Is there any other alternative to do the job? 
&lt;BR /&gt;Below are the snapshot of the job. 
&lt;BR /&gt;Thanks in advance. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;naim 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDQh.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144996iCE4B8017BC72F17D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDQh.jpg" alt="0683p000009MDQh.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDMW.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138526i4772DA60EB23164B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDMW.jpg" alt="0683p000009MDMW.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDEm.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130447iF730FEDBF817FC1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDEm.jpg" alt="0683p000009MDEm.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDQm.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128902i50BF29F9D8F621BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDQm.jpg" alt="0683p000009MDQm.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 30 Jan 2013 04:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225256#M17641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-30T04:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225257#M17642</link>
      <description>Hi Naim
&lt;BR /&gt;In the first and second images, there both has a same name called DOS_formula_Query. I think tContextLoad don't load the right value for the key DOS_formula_Query, because both sheets have a same key DOS_formula_Query. Can you check it?
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 01 Feb 2013 09:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225257#M17642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-01T09:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225258#M17643</link>
      <description>I think you need different key names in the excel file and concatenate them in the database query.&lt;BR /&gt;keys DOS_formula_Select &amp;amp; DOS_formula_From&lt;BR /&gt;and in the query have context.DOS_formula_Select + " " + context.DOS_formula_From</description>
      <pubDate>Fri, 01 Feb 2013 09:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable/m-p/2225258#M17643</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2013-02-01T09:49:09Z</dc:date>
    </item>
  </channel>
</rss>

