<?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 Multiple contexts in one external file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Multiple-contexts-in-one-external-file/m-p/2244076#M30352</link>
    <description>&lt;P&gt;I have a series of Talend jobs that process a delimited file. The file itself can be from any of our 20 customers; it will always have the same schema and format, just a different location on our fileserver.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've written the jobs to use context variables for the file location and file name, so they can be run against any customer file. Right now, I'm using a context within Talend that has file locations and names for 3 different customers (for development purposes). I'd like to store the locations and file names for all our customers in a separate file, so it is easier to update and edit. I was hoping to use tContextLoad for this, but the examples in the documentation use separate files for each context value, rather than one file with multiple values (for example, there is one context file for dev, one for stage, and one for prod); obviously, I don't want to have 20 different context files if I can avoid it.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a way to have all my context values for each customer in one file, rather than 20 separate files, either using tContextLoad or another component? I'm using the licensed version of Data Integration.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Tue, 13 Nov 2018 18:20:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-13T18:20:21Z</dc:date>
    <item>
      <title>Multiple contexts in one external file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-contexts-in-one-external-file/m-p/2244076#M30352</link>
      <description>&lt;P&gt;I have a series of Talend jobs that process a delimited file. The file itself can be from any of our 20 customers; it will always have the same schema and format, just a different location on our fileserver.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've written the jobs to use context variables for the file location and file name, so they can be run against any customer file. Right now, I'm using a context within Talend that has file locations and names for 3 different customers (for development purposes). I'd like to store the locations and file names for all our customers in a separate file, so it is easier to update and edit. I was hoping to use tContextLoad for this, but the examples in the documentation use separate files for each context value, rather than one file with multiple values (for example, there is one context file for dev, one for stage, and one for prod); obviously, I don't want to have 20 different context files if I can avoid it.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a way to have all my context values for each customer in one file, rather than 20 separate files, either using tContextLoad or another component? I'm using the licensed version of Data Integration.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 18:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-contexts-in-one-external-file/m-p/2244076#M30352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-13T18:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple contexts in one external file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-contexts-in-one-external-file/m-p/2244077#M30353</link>
      <description>You can define your file with 3 fields (customer;key;value) then you read the file and use a tMap to filter for the desired customer and eliminate the customer field before to call tContextLoad.</description>
      <pubDate>Thu, 15 Nov 2018 07:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-contexts-in-one-external-file/m-p/2244077#M30353</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-11-15T07:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple contexts in one external file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-contexts-in-one-external-file/m-p/2244078#M30354</link>
      <description>&lt;P&gt;TRF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I'll give it a try and let you know if I can get it to work.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 13:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-contexts-in-one-external-file/m-p/2244078#M30354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-15T13:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple contexts in one external file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-contexts-in-one-external-file/m-p/2244079#M30355</link>
      <description>&lt;P&gt;TRF,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your solution worked; thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are screen shots of the Talend job and the tMap settings. Note that I needed to be able to control the tMap filter based on the actual context selected for the job; Talend has a variable named "contextStr" that returns the currently selected context name, so I filtered by that. That way, I can select the context at the job level (e.g. "customer1", "customer2") and have tMap filter by that and tContextLoad load the selected context from the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lu7O"&gt;talendMultipleContextLoad.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuGu"&gt;talendMultipleContextLoadtMap.PNG&lt;/A&gt;</description>
      <pubDate>Thu, 15 Nov 2018 14:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-contexts-in-one-external-file/m-p/2244079#M30355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-15T14:43:53Z</dc:date>
    </item>
  </channel>
</rss>

