<?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 pass the context variable from command line in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-the-context-variable-from-command-line/m-p/2373496#M136212</link>
    <description>&lt;P&gt;Hi Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the syntax you provided but still, I am unable to override the value while running the job from command line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;job.bandsdatamonthlyflow_0_1.BandsDataMonthlyflow  --context=Default --context_param BandsMonthlyURL=https://services5.arcgis.com/sjP4Ugu5s0dZWLjd/arcgis/rest/services/Bands_Public/FeatureServer/0/query?where=STARTDATE%20%3E='"+ TalendDate.addDate( TalendDate.getDate("YYYYMMDD"), "yyyyMMdd", -3, "MM" )+"'AND%20STARTDATE%20%3C='"+ TalendDate.addDate( TalendDate.getDate("YYYYMMDD"), "yyyyMMdd", -1, "dd" )+"'&amp;amp;returnGeometry=true&amp;amp;resultType=standard&amp;amp;outFields=*&amp;amp;outSR=4326&amp;amp;f=json"$@" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sheetal&lt;/P&gt;</description>
    <pubDate>Tue, 02 Nov 2021 08:25:48 GMT</pubDate>
    <dc:creator>SJeshwani1618330394</dc:creator>
    <dc:date>2021-11-02T08:25:48Z</dc:date>
    <item>
      <title>How to pass the context variable from command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-the-context-variable-from-command-line/m-p/2373494#M136210</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am scheduling a flow every month using the following URL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://services5.arcgis.com/sjP4Ugu5s0dZWLjd/arcgis/rest/services/Bands_Public/FeatureServer/0/query?where=STARTDATE%20%3E=" target="_blank"&gt;https://services5.arcgis.com/sjP4Ugu5s0dZWLjd/arcgis/rest/services/Bands_Public/FeatureServer/0/query?where=STARTDATE%20%3E=&lt;/A&gt;&lt;/P&gt;&lt;P&gt;'"+ TalendDate.addDate( TalendDate.getDate("YYYYMMDD"), "yyyyMMdd", -1, "MM" )+"'AND%20STARTDATE%20%3C='"+ TalendDate.addDate(TalendDate.getDate("YYYYMMDD"), "yyyyMMdd", -1, "dd")+"'&amp;amp;returnGeometry=true&amp;amp;resultType=standard&amp;amp;outFields=*&amp;amp;outSR=4326&amp;amp;f=json&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have passed the URL as a variable from context variable -&amp;gt; tJava -&amp;gt; tHttpRequest. It's working as expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to change the URL by passing the context param from command line, however I am unable to override it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sheetal&lt;/P&gt;</description>
      <pubDate>Sun, 31 Oct 2021 09:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-the-context-variable-from-command-line/m-p/2373494#M136210</guid>
      <dc:creator>SJeshwani1618330394</dc:creator>
      <dc:date>2021-10-31T09:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass the context variable from command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-the-context-variable-from-command-line/m-p/2373495#M136211</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Below is the syntax of passing new values to context variables from command line. &lt;/P&gt;&lt;P&gt;&amp;gt;jobName_0_1.bat --context=Default --context_param var1=value1 --context_param var2=value2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try and let me know if you have any issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 07:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-the-context-variable-from-command-line/m-p/2373495#M136211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-02T07:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass the context variable from command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-the-context-variable-from-command-line/m-p/2373496#M136212</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the syntax you provided but still, I am unable to override the value while running the job from command line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;job.bandsdatamonthlyflow_0_1.BandsDataMonthlyflow  --context=Default --context_param BandsMonthlyURL=https://services5.arcgis.com/sjP4Ugu5s0dZWLjd/arcgis/rest/services/Bands_Public/FeatureServer/0/query?where=STARTDATE%20%3E='"+ TalendDate.addDate( TalendDate.getDate("YYYYMMDD"), "yyyyMMdd", -3, "MM" )+"'AND%20STARTDATE%20%3C='"+ TalendDate.addDate( TalendDate.getDate("YYYYMMDD"), "yyyyMMdd", -1, "dd" )+"'&amp;amp;returnGeometry=true&amp;amp;resultType=standard&amp;amp;outFields=*&amp;amp;outSR=4326&amp;amp;f=json"$@" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sheetal&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 08:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-the-context-variable-from-command-line/m-p/2373496#M136212</guid>
      <dc:creator>SJeshwani1618330394</dc:creator>
      <dc:date>2021-11-02T08:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass the context variable from command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-the-context-variable-from-command-line/m-p/2373497#M136213</link>
      <description>&lt;P&gt;Thank you @Shicong Hong​&amp;nbsp;, this is very helpful!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 18:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-the-context-variable-from-command-line/m-p/2373497#M136213</guid>
      <dc:creator>joeg627</dc:creator>
      <dc:date>2024-01-16T18:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass the context variable from command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-the-context-variable-from-command-line/m-p/2373498#M136214</link>
      <description>&lt;P&gt;@Sheetal Jeshwani​&amp;nbsp;IMO you are passing in too much, and I doubt the TalendDate operations will work when passed in from command line. You might consider having 2 context variables for start date and end date that are used in another context variable for the URL. So in your context, you'd have a variable for BandsMonthlyURL with a value like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;A href="https://services5.arcgis.com/sjP4Ugu5s0dZWLjd/arcgis/rest/services/Bands_Public/FeatureServer/0/query?where=STARTDATE%20%3E=" alt="https://services5.arcgis.com/sjP4Ugu5s0dZWLjd/arcgis/rest/services/Bands_Public/FeatureServer/0/query?where=STARTDATE%20%3E=" target="_blank"&gt;https://services5.arcgis.com/sjP4Ugu5s0dZWLjd/arcgis/rest/services/Bands_Public/FeatureServer/0/query?where=STARTDATE%20%3E=&lt;/A&gt;'"+ TalendDate.addDate( TalendDate.getDate("YYYYMMDD"), "yyyyMMdd", context.StartDate, "MM" )+"'AND%20STARTDATE%20%3C='"+ TalendDate.addDate( TalendDate.getDate("YYYYMMDD"), "yyyyMMdd", context.EndDate, "dd" )+"'&amp;amp;returnGeometry=true&amp;amp;resultType=standard&amp;amp;outFields=*&amp;amp;outSR=4326&amp;amp;f=json"$@" ```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then from the command line you could pass in just&amp;nbsp;--context=Default --context_param StartDate=-3 --context_param EndDate=-1&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 23:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-the-context-variable-from-command-line/m-p/2373498#M136214</guid>
      <dc:creator>joeg627</dc:creator>
      <dc:date>2024-01-16T23:11:36Z</dc:date>
    </item>
  </channel>
</rss>

