<?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] Is it possible to load multiple context variables in a single pass? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349530#M116502</link>
    <description>John,&lt;BR /&gt;You are correct the titles are in my data source file. &lt;BR /&gt;I changed my job to be &lt;B&gt;tFileInputDelimited &amp;gt; tSplitRow &amp;gt; tLogRow&lt;/B&gt; the values of the context variables look good.&lt;BR /&gt;When I change my job to be &lt;B&gt;tFileInputDelimited &amp;gt; tSplitRow &amp;gt; tFlowIterate  Iterate  tOracleInput &amp;gt; tLogRow&lt;/B&gt; the row counts look good till the tOracleInput. &lt;BR /&gt;How do I use the context variables in the tOracleInput?&lt;BR /&gt;This doesn't seem to be finding and using the values of the context variables:&lt;BR /&gt;"SELECT col1, col2, col3&lt;BR /&gt;FROM	excelToSQL&lt;BR /&gt;WHERE col1='"+&lt;B&gt;context.DB1&lt;/B&gt;+"' &lt;BR /&gt;AND col2='"+&lt;B&gt;context.DB2&lt;/B&gt;+"'&lt;BR /&gt;AND col3='"+&lt;B&gt;context.DB3&lt;/B&gt;+"'&lt;BR /&gt;"&lt;BR /&gt;In the tSplitRow I have tried making the columns mapping be both &lt;B&gt;Col1, Col2, Col3&lt;/B&gt; and &lt;BR /&gt;&lt;B&gt;Col1,&lt;BR /&gt;Col2,&lt;BR /&gt;Col3&lt;/B&gt;&lt;BR /&gt;it doesn't seem to matter either way.</description>
    <pubDate>Sat, 10 Mar 2012 00:05:01 GMT</pubDate>
    <dc:creator>talendtester</dc:creator>
    <dc:date>2012-03-10T00:05:01Z</dc:date>
    <item>
      <title>[resolved] Is it possible to load multiple context variables in a single pass?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349524#M116496</link>
      <description>Is it possible to load multiple values from a Excel spreadsheet into multiple context variables in a single pass?
&lt;BR /&gt;My goal is to have 3 context variables I pass data from a spreadsheet to and then use the 3 context variables in SQL against the Oracle database.
&lt;BR /&gt;For example if I have a spreadsheet with three columns and three rows:
&lt;BR /&gt;Col1|Col2|Col3
&lt;BR /&gt;1|abc|123
&lt;BR /&gt;2|def|456
&lt;BR /&gt;3|ghi|789
&lt;BR /&gt;
&lt;BR /&gt;My job looks like:
&lt;BR /&gt;tFileInputExcel &amp;gt; tIterateToFlow &amp;gt; tContextLoad &amp;gt; tOracleInput
&lt;BR /&gt;So far I am able to load the first context variable fine. Anyone know if how I can get the 2nd and 3rd context variable loaded with values?</description>
      <pubDate>Sat, 16 Nov 2024 12:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349524#M116496</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2024-11-16T12:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Is it possible to load multiple context variables in a single pass?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349525#M116497</link>
      <description>Hi&lt;BR /&gt;Why don't you put tFileInputExcel-&amp;gt;tContextLoad as a subjob?&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 08 Mar 2012 02:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349525#M116497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-08T02:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Is it possible to load multiple context variables in a single pass?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349526#M116498</link>
      <description>Am I doing something wrong with the tContextLoad?&lt;BR /&gt;When I tried tFileInputExcel-&amp;gt;tContextLoad, my schema looked like:&lt;BR /&gt;tFileInputExcel (Input -Main):&lt;BR /&gt;---------&lt;BR /&gt;Col1&lt;BR /&gt;Col2&lt;BR /&gt;Col3&lt;BR /&gt;tContextLoad (Output):&lt;BR /&gt;---------&lt;BR /&gt;key1&lt;BR /&gt;value1&lt;BR /&gt;key2&lt;BR /&gt;value2&lt;BR /&gt;key3&lt;BR /&gt;value3&lt;BR /&gt;I was only able to get key and value to work successfully for the first one, the 2nd and 3rd were not being loaded with the values in the corresponding columns of the Excel spreadsheet.</description>
      <pubDate>Thu, 08 Mar 2012 14:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349526#M116498</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2012-03-08T14:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Is it possible to load multiple context variables in a single pass?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349527#M116499</link>
      <description>Hi&lt;BR /&gt;You can create subjob as follows.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 09 Mar 2012 08:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349527#M116499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-09T08:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Is it possible to load multiple context variables in a single pass?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349528#M116500</link>
      <description>Hi pedro, 
&lt;BR /&gt;That looks like only 1 column, how do I go from 
&lt;B&gt;3 columns&lt;/B&gt; to 
&lt;B&gt;3 context variables&lt;/B&gt;? 
&lt;BR /&gt;In the tLogRow I am expecting the following output: 
&lt;BR /&gt;.--------+-------+---------. 
&lt;BR /&gt;| tLogRow_2 | 
&lt;BR /&gt;|=-------+-------+--------=| 
&lt;BR /&gt;|Col1|Col2|Col3| 
&lt;BR /&gt;|=-------+-------+--------=| 
&lt;BR /&gt;| 
&lt;B&gt;1&lt;/B&gt;| 
&lt;B&gt;abc&lt;/B&gt;| 
&lt;B&gt;123&lt;/B&gt;| 
&lt;BR /&gt;'--------+-------+---------' 
&lt;BR /&gt; 
&lt;BR /&gt;.--------+-------+---------. 
&lt;BR /&gt;| tLogRow_2 | 
&lt;BR /&gt;|=-------+-------+--------=| 
&lt;BR /&gt;|Col1|Col2|Col3| 
&lt;BR /&gt;|=-------+-------+--------=| 
&lt;BR /&gt;| 
&lt;B&gt;2&lt;/B&gt;| 
&lt;B&gt;def&lt;/B&gt;| 
&lt;B&gt;456&lt;/B&gt;| 
&lt;BR /&gt;'--------+-------+---------' 
&lt;BR /&gt; 
&lt;BR /&gt;.--------+-------+---------. 
&lt;BR /&gt;| tLogRow_2 | 
&lt;BR /&gt;|=-------+-------+--------=| 
&lt;BR /&gt;|Col1|Col2|Col3| 
&lt;BR /&gt;|=-------+-------+--------=| 
&lt;BR /&gt;| 
&lt;B&gt;3&lt;/B&gt;| 
&lt;B&gt;ghi&lt;/B&gt;| 
&lt;B&gt;789&lt;/B&gt;| 
&lt;BR /&gt;'--------+-------+---------' 
&lt;BR /&gt; 
&lt;BR /&gt;Currently my output is: 
&lt;BR /&gt;Warning: Parameter "1" is a new parameter of tContextLoad_1 
&lt;BR /&gt;Warning: Parameter "2" is a new parameter of tContextLoad_1 
&lt;BR /&gt;Warning: Parameter "3" is a new parameter of tContextLoad_1 
&lt;BR /&gt; 
&lt;B&gt;Warning: Parameter "DB3" has not been set by tContextLoad_1&lt;BR /&gt;Warning: Parameter "DB2" has not been set by tContextLoad_1&lt;BR /&gt;Warning: Parameter "DB1" has not been set by tContextLoad_1&lt;/B&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Attached are the screen shots of my job changed based on your feedback:</description>
      <pubDate>Fri, 09 Mar 2012 15:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349528#M116500</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2012-03-09T15:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Is it possible to load multiple context variables in a single pass?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349529#M116501</link>
      <description>Just to clarify, you are storing the names of your DB columns in the excel file.&lt;BR /&gt;is this correct?&lt;BR /&gt;in each column of the excel file you have a DB name:&lt;BR /&gt;COL1;                      COL2;                     COL3&lt;BR /&gt;column_name_1;      column_name_2;     column_name_3;&lt;BR /&gt;&lt;BR /&gt;if this is the case, take a look at the "tSplitRow" component. Please see screenshots below:</description>
      <pubDate>Fri, 09 Mar 2012 16:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349529#M116501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-09T16:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Is it possible to load multiple context variables in a single pass?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349530#M116502</link>
      <description>John,&lt;BR /&gt;You are correct the titles are in my data source file. &lt;BR /&gt;I changed my job to be &lt;B&gt;tFileInputDelimited &amp;gt; tSplitRow &amp;gt; tLogRow&lt;/B&gt; the values of the context variables look good.&lt;BR /&gt;When I change my job to be &lt;B&gt;tFileInputDelimited &amp;gt; tSplitRow &amp;gt; tFlowIterate  Iterate  tOracleInput &amp;gt; tLogRow&lt;/B&gt; the row counts look good till the tOracleInput. &lt;BR /&gt;How do I use the context variables in the tOracleInput?&lt;BR /&gt;This doesn't seem to be finding and using the values of the context variables:&lt;BR /&gt;"SELECT col1, col2, col3&lt;BR /&gt;FROM	excelToSQL&lt;BR /&gt;WHERE col1='"+&lt;B&gt;context.DB1&lt;/B&gt;+"' &lt;BR /&gt;AND col2='"+&lt;B&gt;context.DB2&lt;/B&gt;+"'&lt;BR /&gt;AND col3='"+&lt;B&gt;context.DB3&lt;/B&gt;+"'&lt;BR /&gt;"&lt;BR /&gt;In the tSplitRow I have tried making the columns mapping be both &lt;B&gt;Col1, Col2, Col3&lt;/B&gt; and &lt;BR /&gt;&lt;B&gt;Col1,&lt;BR /&gt;Col2,&lt;BR /&gt;Col3&lt;/B&gt;&lt;BR /&gt;it doesn't seem to matter either way.</description>
      <pubDate>Sat, 10 Mar 2012 00:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349530#M116502</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2012-03-10T00:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Is it possible to load multiple context variables in a single pass?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349531#M116503</link>
      <description>you simply have to set them 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;try something like this: 
&lt;BR /&gt;tfileInput--row--&amp;gt;tFlowToIterate--iterate--&amp;gt;tFixedFlowInput--row--&amp;gt;tSplitRow--row--&amp;gt;tContextLoad------onComponentOK-----&amp;gt;tOraceInput 
&lt;BR /&gt;the trick here is that you have 3 vars in a single line of the input file, so you want to iterate for each line of the file. 
&lt;BR /&gt;use the tFlowToIterate to accomplish the iteration, then get the row back out of the global map with a tFixedFlowInput.</description>
      <pubDate>Mon, 12 Mar 2012 13:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349531#M116503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-12T13:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Is it possible to load multiple context variables in a single pass?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349532#M116504</link>
      <description>Awesome! Thanks for all the help, finally got it working 100%.</description>
      <pubDate>Wed, 14 Mar 2012 17:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349532#M116504</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2012-03-14T17:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Is it possible to load multiple context variables in a single pass?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349533#M116505</link>
      <description>Hi Talenders,&lt;BR /&gt; &lt;BR /&gt;      i am new to talend ,can any one explain that how to create contexts , how to use contexts in a job</description>
      <pubDate>Tue, 20 Mar 2012 12:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349533#M116505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-20T12:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Is it possible to load multiple context variables in a single pass?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349534#M116506</link>
      <description>Hi Talenders,&lt;BR /&gt; &lt;BR /&gt;      i am new to talend ,can any one explain that how to create contexts , how to use contexts in a job</description>
      <pubDate>Tue, 20 Mar 2012 12:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Is-it-possible-to-load-multiple-context-variables-in-a/m-p/2349534#M116506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-20T12:16:46Z</dc:date>
    </item>
  </channel>
</rss>

