<?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: Changing the order of context variables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230527#M21128</link>
    <description>I could have proposed you to use the tContextLoad (so that you can manage the context variables order in a dedicated external file) but the values are not evaluated, ie you wouldn't be able to set BIN variable based on previously set PROJECT_ROOT variable. 
&lt;BR /&gt;Another solution is to "simulate" a true context file, but a context file that you would create manually. 
&lt;BR /&gt;Here is the content of /home/pierrick/dev/tos/topics/topic2795/context.pl : 
&lt;BR /&gt; 
&lt;PRE&gt;$_context{PROJECT_NAME} = 'myProject';&lt;BR /&gt;$_context{PROJECT_DIR} = '/tmp';&lt;BR /&gt;$_context{PROJECT_FILEPATH} = $_context{PROJECT_DIR}.'/'.$_context{PROJECT_NAME};&lt;BR /&gt;1;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC8j.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154126i67B25F4F607FD451/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC8j.png" alt="0683p000009MC8j.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC5H.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141254i82E53C5767F8327C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC5H.png" alt="0683p000009MC5H.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC9R.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149456iA297BA3D205599A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC9R.png" alt="0683p000009MC9R.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBro.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131385iAE6F7D32EF9459F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBro.png" alt="0683p000009MBro.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Tue, 06 May 2008 15:58:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-05-06T15:58:41Z</dc:date>
    <item>
      <title>Changing the order of context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230524#M21125</link>
      <description>Is there a way to change the order of context variables after you created them? The only way how I could do it - is to export data and import again. But it is a lot of hassle. Is there an easy way to do it? 
&lt;BR /&gt;The other question - is there a way to create context variables on the project level? I have the same variables for each job (like $_context{DATA_DIR} or $_context{BIN_DIR}) and have to drop the context in each job separately. Is there an easier way to handle this?</description>
      <pubDate>Sat, 16 Nov 2024 14:23:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230524#M21125</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T14:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the order of context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230525#M21126</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Is there a way to change the order of context variables after you created them? The only way how I could do it - is to export data and import again. But it is a lot of hassle. Is there an easy way to do it?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;There is a sort function for the context variables.(see the screenshot). 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;The other question - is there a way to create context variables on the project level? I have the same variables for each job (like $_context{DATA_DIR} or $_context{BIN_DIR}) and have to drop the context in each job separately. Is there an easier way to handle this?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Yes, you can create context variable on project level. Click on Contexts on Repository viewer to create global variables for all jobs, then you can import the global variables in each job.(see screenshot2) 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBvV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128179iAB9973FD6CD1AA13/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBvV.png" alt="0683p000009MBvV.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBs7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147968iD3C921466D1C6250/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBs7.png" alt="0683p000009MBs7.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 06 May 2008 07:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230525#M21126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-06T07:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the order of context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230526#M21127</link>
      <description>Thank you for the quick reply! 
&lt;BR /&gt;1) sort is not enough for me, because the order of the variables is important. I have: 
&lt;BR /&gt;PROJECT_NAME='test' 
&lt;BR /&gt;ROOT_DIR='/projects/' 
&lt;BR /&gt;PROJECT_ROOT="$_context{ROOT_DIR}/$_context{PROJECT_NAME}" 
&lt;BR /&gt;BIN="$_context{PROJECT_ROOT}/bin" 
&lt;BR /&gt;as you can see - PROJECT_NAME should always come first, then ROOT_DIR etc. 
&lt;BR /&gt;The big problem is - if I forget to put some variable in the list and I want to add it in between - then the only way to do it is to re-create the whole tree again 
&lt;BR /&gt;2) It's a great feature, that you can create the context variables in the repository and then add it to the jobs. Although what I wanted - was different - I wanted to create a set of variables on the project level once and "forget" about them (I don't want to copy these context variables to each individual jobs again and again). The good example is above - these variables will be the same for all jobs in the project. 
&lt;BR /&gt;Thank you again for the great product and quick replies 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 06 May 2008 12:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230526#M21127</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-05-06T12:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the order of context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230527#M21128</link>
      <description>I could have proposed you to use the tContextLoad (so that you can manage the context variables order in a dedicated external file) but the values are not evaluated, ie you wouldn't be able to set BIN variable based on previously set PROJECT_ROOT variable. 
&lt;BR /&gt;Another solution is to "simulate" a true context file, but a context file that you would create manually. 
&lt;BR /&gt;Here is the content of /home/pierrick/dev/tos/topics/topic2795/context.pl : 
&lt;BR /&gt; 
&lt;PRE&gt;$_context{PROJECT_NAME} = 'myProject';&lt;BR /&gt;$_context{PROJECT_DIR} = '/tmp';&lt;BR /&gt;$_context{PROJECT_FILEPATH} = $_context{PROJECT_DIR}.'/'.$_context{PROJECT_NAME};&lt;BR /&gt;1;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC8j.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154126i67B25F4F607FD451/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC8j.png" alt="0683p000009MC8j.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC5H.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141254i82E53C5767F8327C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC5H.png" alt="0683p000009MC5H.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC9R.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149456iA297BA3D205599A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC9R.png" alt="0683p000009MC9R.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBro.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131385iAE6F7D32EF9459F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBro.png" alt="0683p000009MBro.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 06 May 2008 15:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230527#M21128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-06T15:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the order of context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230528#M21129</link>
      <description>Excellent, thank you for your advice, I will definitely use this solution. 
&lt;BR /&gt;The only thing is - I will have to abandon the whole "context" system and use my own script, which is sad, because context looks pretty handy and user-friendly, it just missing this small features that I want.</description>
      <pubDate>Tue, 06 May 2008 16:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230528#M21129</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-05-06T16:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the order of context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230529#M21130</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I will have to abandon the whole "context" system and use my own script, which is sad, because context looks pretty handy and user-friendly&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You will indeed loose the auto-completion CTRL+Space if you don't declare context variables in the context view. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;it just missing this small features that I want.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Only one advice : submit a feature request "order context variables". I'm sure it's a very simple dev.</description>
      <pubDate>Tue, 06 May 2008 17:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230529#M21130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-06T17:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the order of context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230530#M21131</link>
      <description>Sure, will do!</description>
      <pubDate>Tue, 06 May 2008 18:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Changing-the-order-of-context-variables/m-p/2230530#M21131</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-05-06T18:35:12Z</dc:date>
    </item>
  </channel>
</rss>

