<?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 Import list value context variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356871#M122301</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need import the value to insert in oracle query. So...&lt;/P&gt;
&lt;P&gt;I have file (csv or txt is the same). I need read value x,y,z.. After I store that value and use that&lt;/P&gt;
&lt;P&gt;in oracle query like this: select * form table where value in ('x','y','z').&lt;/P&gt;
&lt;P&gt;How to do that?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thnx at all&lt;/P&gt;
&lt;P&gt;best regards&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 08:42:28 GMT</pubDate>
    <dc:creator>chichibio</dc:creator>
    <dc:date>2024-11-16T08:42:28Z</dc:date>
    <item>
      <title>Import list value context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356871#M122301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need import the value to insert in oracle query. So...&lt;/P&gt;
&lt;P&gt;I have file (csv or txt is the same). I need read value x,y,z.. After I store that value and use that&lt;/P&gt;
&lt;P&gt;in oracle query like this: select * form table where value in ('x','y','z').&lt;/P&gt;
&lt;P&gt;How to do that?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thnx at all&lt;/P&gt;
&lt;P&gt;best regards&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356871#M122301</guid>
      <dc:creator>chichibio</dc:creator>
      <dc:date>2024-11-16T08:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Import list value context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356872#M122302</link>
      <description>Hi,&lt;BR /&gt;If x,y,z are issued from different records, use a tJavaRow to construct the "in" clause into à global variable. Then reuse it in your tOracleInpout to complete the query.</description>
      <pubDate>Tue, 13 Feb 2018 10:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356872#M122302</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-13T10:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Import list value context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356873#M122303</link>
      <description>&lt;P&gt;mmm... I have the problem to do the first step.&lt;/P&gt;&lt;P&gt;How I can read and store the list of value inside the file?&lt;/P&gt;&lt;P&gt;After I can use tJavaRow?&lt;/P&gt;&lt;P&gt;The example of open file is like this: name = test.csv&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;P&gt;d&lt;/P&gt;&lt;P&gt;without comma or other separator&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356873#M122303</guid>
      <dc:creator>chichibio</dc:creator>
      <dc:date>2018-02-13T11:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Import list value context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356874#M122304</link>
      <description>Connect tJavaRow after tFileInputDelimited.
&lt;BR /&gt;You will have each row one by one so it's easy to concatenate values an build the desired part of the query with something like:
&lt;BR /&gt;context.yourVariable = context.yourVariable + ", '" + input_row. yourField + "'" ;
&lt;BR /&gt;You'll have to finish the construction from outside of the tJavaRow to remove the 1rst character.</description>
      <pubDate>Tue, 13 Feb 2018 11:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356874#M122304</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-13T11:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Import list value context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356875#M122305</link>
      <description>&lt;P&gt;Thnx!&lt;/P&gt; 
&lt;P&gt;Your suggest work. But I have 1 one problem.&amp;nbsp;I change the file contains and I don't concatenate to have "'" or ",".&lt;/P&gt; 
&lt;P&gt;So, my file I have the follow text:&lt;/P&gt; 
&lt;P&gt;'a',&lt;/P&gt; 
&lt;P&gt;'b',&lt;/P&gt; 
&lt;P&gt;'c'&lt;/P&gt; 
&lt;P&gt;But after the query,in tLOGrow the output is just only 1 record and not 3 records.&lt;/P&gt; 
&lt;P&gt;I show you my print screen&lt;/P&gt; 
&lt;P&gt;In my oracle query I have: select * from table where idcase IN ("+context.variable+")&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="primo.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsF9.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155911i5AA40AB016EE2DB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsF9.jpg" alt="0683p000009LsF9.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="secondo.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ls3b.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142807iEA36E81094D15D49/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ls3b.jpg" alt="0683p000009Ls3b.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 13:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356875#M122305</guid>
      <dc:creator>chichibio</dc:creator>
      <dc:date>2018-02-13T13:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Import list value context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356876#M122306</link>
      <description>What if you execute the same query from outside of Talend (using SQL*Plus)?</description>
      <pubDate>Tue, 13 Feb 2018 14:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356876#M122306</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-13T14:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Import list value context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356877#M122307</link>
      <description>&lt;P&gt;If I execute the same query in tOracle component without context variable, It works.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 14:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356877#M122307</guid>
      <dc:creator>chichibio</dc:creator>
      <dc:date>2018-02-13T14:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Import list value context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356878#M122308</link>
      <description>&lt;P&gt;1rst, you have put 3 line in the input file but it seems (based on the capture), only 2 are read.&lt;/P&gt;&lt;P&gt;Can you print the context variable after the construction (add a System.out.println inthe tJavaRow)?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 14:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356878#M122308</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-13T14:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Import list value context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356879#M122309</link>
      <description>&lt;P&gt;Sorry, I wrong the example. You right.&lt;/P&gt; 
&lt;P&gt;So... input file I have 3 records and in tJavaRow I wrote this:&amp;nbsp;context.elenco = row1.val_id;&lt;BR /&gt;System.out.println(context.elenco);&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.JPG" style="width: 238px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lsba.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142497i685730EF7E502945/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lsba.jpg" alt="0683p000009Lsba.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsMD.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153383i1D761772BC9BD502/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsMD.jpg" alt="0683p000009LsMD.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 14:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356879#M122309</guid>
      <dc:creator>chichibio</dc:creator>
      <dc:date>2018-02-13T14:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Import list value context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356880#M122310</link>
      <description>&lt;P&gt;You need to change the tJavaRow like this:&lt;/P&gt;&lt;PRE&gt;context.elenco = context.elenco + row1.val_id;&lt;/PRE&gt;&lt;P&gt;Else you will query only for the value 'c'.&lt;/P&gt;&lt;P&gt;Right?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 14:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356880#M122310</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-13T14:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Import list value context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356881#M122311</link>
      <description>&lt;P&gt;It works well now.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thnx so much&amp;nbsp;&lt;SPAN&gt;TRF.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;You are the boss of Talend&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;very good&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;thnx&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 14:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356881#M122311</guid>
      <dc:creator>chichibio</dc:creator>
      <dc:date>2018-02-13T14:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Import list value context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356882#M122312</link>
      <description>&lt;P&gt;You're welcome!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 15:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-list-value-context-variable/m-p/2356882#M122312</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-13T15:00:33Z</dc:date>
    </item>
  </channel>
</rss>

