<?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: Load context from XML file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285790#M59412</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/s/profile/00570000004XJiJAAW" target="_self"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Now, you are able to load the context var from XML file?, please share the procedure, i didnt get clue from the discussions so far.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2019 15:08:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-08-30T15:08:53Z</dc:date>
    <item>
      <title>Load context from XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285783#M59405</link>
      <description>Hello,
&lt;BR /&gt;I'd like to manage my context variables thanks to an XML file. In this file, I would like to manage all the needed variables PLUS different value for these variable according to the execution environment (production or development).
&lt;BR /&gt;So I wrote an XML file like this:
&lt;BR /&gt;
&lt;PRE&gt;&amp;lt;setup_information&amp;gt;&lt;BR /&gt;	&amp;lt;setup context="DEV"&amp;gt;&lt;BR /&gt;		&amp;lt;hostname&amp;gt;servename_DEV&amp;lt;/hostname&amp;gt;&lt;BR /&gt;		&amp;lt;port&amp;gt;1234_DEV&amp;lt;/port&amp;gt;&lt;BR /&gt;		&amp;lt;username&amp;gt;user_DEV&amp;lt;/username&amp;gt;&lt;BR /&gt;		&amp;lt;password&amp;gt;pass_DEV&amp;lt;/password&amp;gt;&lt;BR /&gt;	&amp;lt;/setup&amp;gt;&lt;BR /&gt;	&amp;lt;setup context="PROD"&amp;gt;&lt;BR /&gt;		&amp;lt;hostname&amp;gt;servename_PROD&amp;lt;/hostname&amp;gt;&lt;BR /&gt;		&amp;lt;port&amp;gt;1234_PROD&amp;lt;/port&amp;gt;&lt;BR /&gt;		&amp;lt;username&amp;gt;user_PROD&amp;lt;/username&amp;gt;&lt;BR /&gt;		&amp;lt;password&amp;gt;pass_PROD&amp;lt;/password&amp;gt;&lt;BR /&gt;	&amp;lt;/setup&amp;gt;&lt;BR /&gt;&amp;lt;/setup_information&amp;gt;&lt;/PRE&gt;
&lt;BR /&gt;Then, I setup my tFileInputXML like you can see on the screen shot, where context.context_type = "DEV" or "PROD" according to the context...
&lt;BR /&gt;I can retrieve the expected value, according to the context, taht fine.
&lt;BR /&gt;BUT, how can I transform this into context, the tContextLoad component having a shema key/value ???</description>
      <pubDate>Sat, 16 Nov 2024 14:03:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285783#M59405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285784#M59406</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;BUT, how can I transform this into context,&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;After you extract the value from xml file, you can use a tJavaRow to set the values to context variables, see the screenshots. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;the tContextLoad component having a shema key/value ???&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Yes, tContextLoad component have a schema with key/value column. You can store your context variable and their values in a file like this: 
&lt;BR /&gt;hostname:hostnameDEV 
&lt;BR /&gt;port 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt;ortDEV 
&lt;BR /&gt;username:usernameDEV 
&lt;BR /&gt;password 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt;asswordDEV 
&lt;BR /&gt;then, use a tContextLoad component to load the values to context variables in a job. About the basic usage of tContextload, please read the user documentation. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 26 Feb 2009 05:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285784#M59406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-26T05:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285785#M59407</link>
      <description>Damned... My yesterday job does not work anymore... 
&lt;BR /&gt;Tahnks shong for your help !!! 
&lt;BR /&gt;Arnaud</description>
      <pubDate>Thu, 26 Feb 2009 09:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285785#M59407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-26T09:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285786#M59408</link>
      <description>hi guys,&lt;BR /&gt;&lt;BR /&gt;i am using this approach to set global context in a project...&lt;BR /&gt;tmysqlinput(1)------&amp;gt;tjavarow(here multifull if conditions for assiging vales to different context's)&lt;BR /&gt;                              |&lt;BR /&gt;                              |&lt;BR /&gt;                              tmysqlinput(2)---------tmysqloutput&lt;BR /&gt;Note: Created context variables.&lt;BR /&gt;&lt;BR /&gt;by using those components i am able to assign values to context and i am using those context in tmysqlinput(2), and finaly loaded data into target...&lt;BR /&gt;??????PROBLEM IS : i am facing one of the issue..like this..&lt;BR /&gt;i dont want to use " tmysqlinput(1)------&amp;gt;tjavarow(here multifull if conditions for assiging vales to different context's)" this part every time.&lt;BR /&gt;based on context variables i need to assign context values to other jobs..&lt;BR /&gt;when i retrive context by using context tab and trying to use.............but unable to retrive and dispaly  those  values.....&lt;BR /&gt;How we can use those context's in other jobs..?????&lt;BR /&gt;&lt;BR /&gt;Pls let me know any one.....on this issue.???????&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 20 Jul 2010 03:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285786#M59408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-20T03:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285787#M59409</link>
      <description>Hi Buzzy, 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;How we can use those context's in other jobs..?????&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Please see screeshots below. I am not good in explaining things that's why I just provided screenshots for you. But still, not sure if this is what you are looking for. 
&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, 20 Jul 2010 07:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285787#M59409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-20T07:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285788#M59410</link>
      <description>Hey, 
&lt;BR /&gt;nice tutorial Shong. It works well. But because it is already some time ago, I want to ask if there is another more intuitive way how to read configuration from XML file directly into context variables? 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;Ladislav Jech</description>
      <pubDate>Thu, 09 Sep 2010 15:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285788#M59410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-09T15:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285789#M59411</link>
      <description>Sorry, but, where are the screenshots?</description>
      <pubDate>Thu, 07 Aug 2014 22:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285789#M59411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-07T22:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Load context from XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285790#M59412</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/s/profile/00570000004XJiJAAW" target="_self"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Now, you are able to load the context var from XML file?, please share the procedure, i didnt get clue from the discussions so far.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-context-from-XML-file/m-p/2285790#M59412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-30T15:08:53Z</dc:date>
    </item>
  </channel>
</rss>

