<?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: Loading context values from file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Loading-context-values-from-file/m-p/2340818#M108819</link>
    <description>&lt;P&gt;That looks fine to me. &amp;nbsp;Is it working?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2017 21:47:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-24T21:47:44Z</dc:date>
    <item>
      <title>Loading context values from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loading-context-values-from-file/m-p/2340814#M108815</link>
      <description>Team, I have a list of jobs where i will be reading a file from source path and do transformation and write in to target path. Now the source path and target path keeps changing for each environment (Development, Test, UAT, Production). So i need to maintain a file in each environment server and access to same to resolve me context value(source and target path). Any help on how to approach this design will be appreciated. If we can build a process that will be common for all the jobs to use will be very helpful. I saw some examples using tcontextload but not sure how to use as I'm new to Talend tool.</description>
      <pubDate>Thu, 20 Jul 2017 14:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loading-context-values-from-file/m-p/2340814#M108815</guid>
      <dc:creator>rajesh90</dc:creator>
      <dc:date>2017-07-20T14:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Loading context values from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loading-context-values-from-file/m-p/2340815#M108816</link>
      <description>&lt;P&gt;The better (I think so), define ContextFile as a context variable with the appropriate value depending on the context (&lt;SPAN&gt;Development, Test, UAT, Production).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;For each concerned job, go to the job tab, then Extr, uncheck the option "Use Project Settings", check the option "Implicit tContextLoad", choose "From File", set the "From File" field as "context.ContextFile" and set the "Field Separator" field as "==" (for example). &lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LucM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136039iC8018993788A7C6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LucM.png" alt="0683p000009LucM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Finally, define your key/values context files&amp;nbsp;using "==" as a separator.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;That's all.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 15:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loading-context-values-from-file/m-p/2340815#M108816</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-07-20T15:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Loading context values from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loading-context-values-from-file/m-p/2340816#M108817</link>
      <description>&lt;P&gt;As&amp;nbsp;@TRF says. &amp;nbsp;I will add that instead of a context variable, the path to the config path can be a system environment variable. &amp;nbsp;And you use System.getenv("some variable name").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way you know when your config are by querying the environment variable you defined. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 16:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loading-context-values-from-file/m-p/2340816#M108817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T16:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Loading context values from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loading-context-values-from-file/m-p/2340817#M108818</link>
      <description>Hi iburtally, One more clarification, to access the environment variable, My sample path are something like below, DEV Env : /home/users/DEV/ Test Env : /home/users/TEST/ PROD Env : /home/users/PROD/ In the Job tab, under “Stats &amp;amp; Logs”, the file path option is available, so to access the file path we need give something like below in File path, or do we need to use tJava to access the environment variable, File Path : “/home/users/”+System.getenv("ENV_NAME")+”/” In the above statement ENV_NAME is my parameter that is exported in Unix environment.</description>
      <pubDate>Mon, 24 Jul 2017 13:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loading-context-values-from-file/m-p/2340817#M108818</guid>
      <dc:creator>rajesh90</dc:creator>
      <dc:date>2017-07-24T13:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Loading context values from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Loading-context-values-from-file/m-p/2340818#M108819</link>
      <description>&lt;P&gt;That looks fine to me. &amp;nbsp;Is it working?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 21:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Loading-context-values-from-file/m-p/2340818#M108819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-24T21:47:44Z</dc:date>
    </item>
  </channel>
</rss>

