<?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 How to use contexte variables in compnents developped with new component kit in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-contexte-variables-in-compnents-developped-with-new/m-p/2246544#M149129</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i'm migrating some components from java jet to the new component kit;&lt;/P&gt;
&lt;P&gt;How to use contexte variables in compnents developped with new component kit.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jan 2026 14:45:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2026-01-02T14:45:42Z</dc:date>
    <item>
      <title>How to use contexte variables in compnents developped with new component kit</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-contexte-variables-in-compnents-developped-with-new/m-p/2246544#M149129</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i'm migrating some components from java jet to the new component kit;&lt;/P&gt;
&lt;P&gt;How to use contexte variables in compnents developped with new component kit.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 14:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-contexte-variables-in-compnents-developped-with-new/m-p/2246544#M149129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-01-02T14:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use contexte variables in compnents developped with new component kit</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-contexte-variables-in-compnents-developped-with-new/m-p/2246545#M149130</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LNTmAAO"&gt;@Bilel.Charradi&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;With new Talend Component Kit you don't need to implement anything special in your Component code to support context variables. Context variables are supported by Studio out of the box.&lt;/P&gt; 
&lt;P&gt;It works in following way:&lt;/P&gt; 
&lt;P&gt;1. Component option value goes to generated code without changes.&lt;/P&gt; 
&lt;P&gt;If user set a value with context variable he may see following Java code fragment in generated code&lt;/P&gt; 
&lt;P&gt;(click on "Code" tab to see generated code)&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="contextInCode.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M20J.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150717i401BFA288BF680FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M20J.png" alt="0683p000009M20J.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;2. In generated you may see that Map&amp;lt;String, Object&amp;gt; is created for Component options. Context variables are evaluated during this configuration Map setup. Map will hold evaluated context variable value (e.g. "myValue" string)&lt;/P&gt; 
&lt;P&gt;3. Then this Map is used to initialize Component. In Component code you will get evaluated context variable value (you will get "myValue" instead of context.input in Component code).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However, note that Components developed with new Component Kit support only static values (i.e. values which are not changed during Job runtime), because Component options are evaluated only once at the beginning.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you have more questions don't hesitate to ask.&lt;/P&gt; 
&lt;P&gt;If you found some bug related to context variable value support, please create a ticket in our &lt;A href="https://jira.talendforge.org" target="_self" rel="nofollow noopener noreferrer"&gt;Jira&lt;/A&gt;&amp;nbsp;for TUP (Studio) project.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards,&lt;/P&gt; 
&lt;P&gt;Ivan Gonchar&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 20:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-contexte-variables-in-compnents-developped-with-new/m-p/2246545#M149130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-30T20:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use contexte variables in compnents developped with new component kit</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-contexte-variables-in-compnents-developped-with-new/m-p/2246546#M149131</link>
      <description>Hi Ivan,&lt;BR /&gt;From which object are we able to access global/context variables? I'm within the OnNext method in a processor and can't see an obvious way to get at these.</description>
      <pubDate>Wed, 10 Jul 2019 05:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-contexte-variables-in-compnents-developped-with-new/m-p/2246546#M149131</guid>
      <dc:creator>serdarkilic</dc:creator>
      <dc:date>2019-07-10T05:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use contexte variables in compnents developped with new component kit</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-contexte-variables-in-compnents-developped-with-new/m-p/2246547#M149132</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLIsAAO"&gt;@serdarkilic&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It is not possible to access global/context variables directly in Component code.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You may set global/context variable as value of Component UI property.&lt;/P&gt; 
&lt;P&gt;Then&amp;nbsp;global/context variable value will be evaluated during Job code execution and set as value of Component Configuration class (a POJO class which defines Component properties)&lt;/P&gt; 
&lt;P&gt;In your Component code you may get variables values as values in your Configuration class.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 10:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-contexte-variables-in-compnents-developped-with-new/m-p/2246547#M149132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-10T10:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use contexte variables in compnents developped with new component kit</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-contexte-variables-in-compnents-developped-with-new/m-p/2246548#M149133</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have tried this solution and while it works for context variables, it is treating the global variables as text (i.e. I get "jobName" output instead of the actual name of the job)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have included below a screen shot of the configuration in my studio and code for the configuration object and object for the list below.&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Configuration (Studio 7.1.1)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-08-12 12.07.02.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7YF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133885i5FFB1C8E7324166D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7YF.png" alt="0683p000009M7YF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Configuration object:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-08-12 12.08.15.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7YU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153186iE4063B788C9540F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7YU.png" alt="0683p000009M7YU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;List object:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-08-12 12.07.50.png" style="width: 976px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7SN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146825i1246A8DD86334636/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7SN.png" alt="0683p000009M7SN.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 17:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-contexte-variables-in-compnents-developped-with-new/m-p/2246548#M149133</guid>
      <dc:creator>bsimakis</dc:creator>
      <dc:date>2019-08-12T17:18:37Z</dc:date>
    </item>
  </channel>
</rss>

