<?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 Implicit load context - setting up retrieval from DB in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Implicit-load-context-setting-up-retrieval-from-DB/m-p/2229710#M20574</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;I'm new to Talend and trying to get up to speed very quickly, with a view to configuration of my jobs I've been reading the blog series:&lt;BR /&gt;&lt;A href="https://www.talend.com/blog/2019/02/28/best-practices-for-using-context-variables-with-talend-part-3/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talend.com/blog/2019/02/28/best-practices-for-using-context-variables-with-talend-part-3/&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've attempted to replicate this but am getting Java compilation errors, and finally need to seek some help to understand why the embedded code is failing, or indeed my assumptions are correct:&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;I'm assuming that in the article, the resolution of the column names which are in the format "schema.table.columnName" (e.g. schema and table) were not changed and in fact&lt;STRONG&gt;&lt;EM&gt;, cannot be changed&lt;/EM&gt; &lt;/STRONG&gt;- (though the article implies you can). The side effect of doing this is that the generated code is unable to write the embedded value correctly in the generated code and you get in essence a java string for the select statement with your values (which should be code) embedded in it:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The following is generated if I set the schema and table to "public" and "context_Variables" respectively:&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;String dbquery_Implicit_Context_Database = "SELECT \n \"public\".\"context_variables\".\"key\", \n \"public\".\"context_variables\".\"value\"\nFROM \"public\".\"con"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;+ "text_variables\"";&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;When I 'parameterise' them I get the following generated (note that the table name hasn't even been attempted to be injected):&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;String dbquery_Implicit_Context_Database = "SELECT \n \"UcasConfiguration.getImplicitContextParameterValue("talend.configuration.configurationDB.schema")\".\"_MyTable_\".\"key\", \n \"UcasConfiguration.getImplicitContextParameterValue("talend.configuration.configurationDB.schema")\".\"_MyTable_\".\"value\"\nFROM \"UcasConfiguration.getImplicitContextParameterValue("talend.configuration.configurationDB.schema")\".\"_MyTable_\"";&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;My conclusion is that you are only able to parameterise &lt;EM&gt;connection&lt;/EM&gt;&amp;nbsp;strings, not the actual database structure.&lt;BR /&gt;&lt;BR /&gt;Is anyone able to concur - or show me what I'm thinking is just plain, bogus!&lt;BR /&gt;&lt;BR /&gt;Many thanks!&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:05:39 GMT</pubDate>
    <dc:creator>stucas</dc:creator>
    <dc:date>2024-11-16T02:05:39Z</dc:date>
    <item>
      <title>Implicit load context - setting up retrieval from DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Implicit-load-context-setting-up-retrieval-from-DB/m-p/2229710#M20574</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I'm new to Talend and trying to get up to speed very quickly, with a view to configuration of my jobs I've been reading the blog series:&lt;BR /&gt;&lt;A href="https://www.talend.com/blog/2019/02/28/best-practices-for-using-context-variables-with-talend-part-3/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talend.com/blog/2019/02/28/best-practices-for-using-context-variables-with-talend-part-3/&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've attempted to replicate this but am getting Java compilation errors, and finally need to seek some help to understand why the embedded code is failing, or indeed my assumptions are correct:&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;I'm assuming that in the article, the resolution of the column names which are in the format "schema.table.columnName" (e.g. schema and table) were not changed and in fact&lt;STRONG&gt;&lt;EM&gt;, cannot be changed&lt;/EM&gt; &lt;/STRONG&gt;- (though the article implies you can). The side effect of doing this is that the generated code is unable to write the embedded value correctly in the generated code and you get in essence a java string for the select statement with your values (which should be code) embedded in it:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The following is generated if I set the schema and table to "public" and "context_Variables" respectively:&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;String dbquery_Implicit_Context_Database = "SELECT \n \"public\".\"context_variables\".\"key\", \n \"public\".\"context_variables\".\"value\"\nFROM \"public\".\"con"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;+ "text_variables\"";&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;When I 'parameterise' them I get the following generated (note that the table name hasn't even been attempted to be injected):&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;String dbquery_Implicit_Context_Database = "SELECT \n \"UcasConfiguration.getImplicitContextParameterValue("talend.configuration.configurationDB.schema")\".\"_MyTable_\".\"key\", \n \"UcasConfiguration.getImplicitContextParameterValue("talend.configuration.configurationDB.schema")\".\"_MyTable_\".\"value\"\nFROM \"UcasConfiguration.getImplicitContextParameterValue("talend.configuration.configurationDB.schema")\".\"_MyTable_\"";&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;My conclusion is that you are only able to parameterise &lt;EM&gt;connection&lt;/EM&gt;&amp;nbsp;strings, not the actual database structure.&lt;BR /&gt;&lt;BR /&gt;Is anyone able to concur - or show me what I'm thinking is just plain, bogus!&lt;BR /&gt;&lt;BR /&gt;Many thanks!&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:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Implicit-load-context-setting-up-retrieval-from-DB/m-p/2229710#M20574</guid>
      <dc:creator>stucas</dc:creator>
      <dc:date>2024-11-16T02:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit load context - setting up retrieval from DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Implicit-load-context-setting-up-retrieval-from-DB/m-p/2229711#M20575</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from examples it not seen all possible errors, but at least one is seen clear:&lt;/P&gt;&lt;P&gt;when you want to use context variable, you do not need to enclose them into brackets "", but must add prefix context.&lt;/P&gt;&lt;PRE&gt;context.context_variable 
for table name, instead of
"context_variable" &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 04:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Implicit-load-context-setting-up-retrieval-from-DB/m-p/2229711#M20575</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2020-06-25T04:25:32Z</dc:date>
    </item>
  </channel>
</rss>

