<?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: How to dynamically pass or select the context variable of file type when run through build batch file? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-pass-or-select-the-context-variable-of-file/m-p/2278270#M53797</link>
    <description>&lt;P&gt;I have used context variable of type File with prompt and configured in the File name/Stream of the&amp;nbsp;tFileInputDelimited.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I run the job through Talend Open Source, I get the prompt to select the file from my directory. How can I pass the path when I run the batch file?&lt;/P&gt; 
&lt;P&gt;I copied the tFileInputDelimited file in same location of the batch file and passed with batch execution but getting file not found error for the file whose path is present in the input file then setting it to context variable.&lt;/P&gt; 
&lt;P&gt;Please help!!&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 570px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Zr.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136015i9A664E0BB8A005E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Zr.jpg" alt="0683p000009M9Zr.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 604px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9bJ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141290i537A6E66232350E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9bJ.jpg" alt="0683p000009M9bJ.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9dA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137784i9A739E25D4A21BE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9dA.jpg" alt="0683p000009M9dA.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 20:08:12 GMT</pubDate>
    <dc:creator>dattasud</dc:creator>
    <dc:date>2020-03-31T20:08:12Z</dc:date>
    <item>
      <title>How to dynamically pass or select the context variable of file type when run through build batch file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-pass-or-select-the-context-variable-of-file/m-p/2278269#M53796</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;In my job, I have tFileInputDelimited which loads the context variables. The file is located in my local directory.&lt;/P&gt;&lt;P&gt;How can I configure the path dynamically so that when I run the build using batch file through command prompt, I can pass the&amp;nbsp;tFileInputDelimited dynamically. I am doing this because I will be running the build in target server.&lt;/P&gt;&lt;P&gt;How can I give relative path to&amp;nbsp;tFileInputDelimited, so that it can read the file from same directory?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-pass-or-select-the-context-variable-of-file/m-p/2278269#M53796</guid>
      <dc:creator>dattasud</dc:creator>
      <dc:date>2024-11-16T02:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically pass or select the context variable of file type when run through build batch file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-pass-or-select-the-context-variable-of-file/m-p/2278270#M53797</link>
      <description>&lt;P&gt;I have used context variable of type File with prompt and configured in the File name/Stream of the&amp;nbsp;tFileInputDelimited.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I run the job through Talend Open Source, I get the prompt to select the file from my directory. How can I pass the path when I run the batch file?&lt;/P&gt; 
&lt;P&gt;I copied the tFileInputDelimited file in same location of the batch file and passed with batch execution but getting file not found error for the file whose path is present in the input file then setting it to context variable.&lt;/P&gt; 
&lt;P&gt;Please help!!&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 570px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Zr.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136015i9A664E0BB8A005E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Zr.jpg" alt="0683p000009M9Zr.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 604px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9bJ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141290i537A6E66232350E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9bJ.jpg" alt="0683p000009M9bJ.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9dA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137784i9A739E25D4A21BE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9dA.jpg" alt="0683p000009M9dA.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 20:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-pass-or-select-the-context-variable-of-file/m-p/2278270#M53797</guid>
      <dc:creator>dattasud</dc:creator>
      <dc:date>2020-03-31T20:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically pass or select the context variable of file type when run through build batch file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-pass-or-select-the-context-variable-of-file/m-p/2278271#M53798</link>
      <description>Remove tFileInputDelimited and tContextLoad from your job. 
&lt;BR /&gt;Define a new context variable (contextFilepath for example) with the desired value path for each context. 
&lt;BR /&gt;Go go job tab, then extra and untick option "Use Project Settings", tick "Implicit tContextLoad", tick "From file" and enter "context.contextFilepath" into the associated field. 
&lt;BR /&gt;At runtime, on command line add "--context=theContextYouWant" to start the job within the desired context or add "--context_param contextFilepath=thePathYouWantToUse" to use the context file you want.</description>
      <pubDate>Tue, 31 Mar 2020 20:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-pass-or-select-the-context-variable-of-file/m-p/2278271#M53798</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-03-31T20:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically pass or select the context variable of file type when run through build batch file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-pass-or-select-the-context-variable-of-file/m-p/2278272#M53799</link>
      <description>&lt;P&gt;Many thanks for the solution &lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;I also did something similar to solve the problem. I removed the tfileinput and contextload from my job. Now I just have my context variables. After I build the job, i navigate to the context/Default.properties and added the value of my context variables. I checked when I ran the build, it was showing the context=Default&lt;BR /&gt;That way I am able to pass my variable values.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I will use your solution to implement using implicit tContextLoad in my job.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 21:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-pass-or-select-the-context-variable-of-file/m-p/2278272#M53799</guid>
      <dc:creator>dattasud</dc:creator>
      <dc:date>2020-03-31T21:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically pass or select the context variable of file type when run through build batch file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-pass-or-select-the-context-variable-of-file/m-p/2278273#M53800</link>
      <description>That's the way context work by default.
&lt;BR /&gt;What I suggest is a more advanced solution.
&lt;BR /&gt;Imagine you have 10 jobs whith 3 different context. If you want to change the value for 1 variable used by all jobs and context, you have to modify 30 context files. Right?
&lt;BR /&gt;With the proposed solution you just have to modify 3 files. Also, you don't have to define the value for each variable within the Studio. You can do it from outside and it's often more confortable.
&lt;BR /&gt;I strongly recommand to think about this way to operate with context.</description>
      <pubDate>Tue, 31 Mar 2020 23:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-pass-or-select-the-context-variable-of-file/m-p/2278273#M53800</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-03-31T23:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically pass or select the context variable of file type when run through build batch file?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-pass-or-select-the-context-variable-of-file/m-p/2278274#M53801</link>
      <description>Yes, it is more advanced and easy to configure.</description>
      <pubDate>Wed, 01 Apr 2020 14:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-pass-or-select-the-context-variable-of-file/m-p/2278274#M53801</guid>
      <dc:creator>dattasud</dc:creator>
      <dc:date>2020-04-01T14:06:52Z</dc:date>
    </item>
  </channel>
</rss>

