<?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: tOracleInput &amp; dynamic parameters in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tOracleInput-dynamic-parameters/m-p/2294707#M67558</link>
    <description>Hi 
&lt;BR /&gt;Please upload a screenshot of your job, I want to see whether you have already initialized the value before you use the context avariable or global variable. 
&lt;BR /&gt;BTW, you don't use the global variable correctly, to get the value of global variable, should be: 
&lt;BR /&gt;(String)globalMap.get("PartNumber") 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Fri, 24 Jun 2011 02:30:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-06-24T02:30:08Z</dc:date>
    <item>
      <title>tOracleInput &amp; dynamic parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleInput-dynamic-parameters/m-p/2294706#M67557</link>
      <description>Hello, 
&lt;BR /&gt;I would like to dynamically retrieve data from a db table by passing a parameter to a query. 
&lt;BR /&gt;Here's what I put in my tOracleInput component (used in a lookup for a tMap component) : 
&lt;BR /&gt;"SELECT trim(t$item), t$oltm as LT FROM ttiitm001300 WHERE t$item = " + context.partnumber + "" 
&lt;BR /&gt;I also tried 
&lt;BR /&gt;"SELECT trim(t$item), t$oltm as LT FROM ttiitm001300 WHERE t$item = " + ((String)tGlobalMap("PartNumber")) + "" 
&lt;BR /&gt;But everything is returning 'null', context.partnumber or tGlobalMap("PartNumber") although I'm initializing these values in a 
&lt;BR /&gt;preceding step (using a tJavaRow component). 
&lt;BR /&gt;globalMap.put("PartNumber", input_row.PartNumber.trim()); 
&lt;BR /&gt;context.partnumber = input_row.PartNumber; 
&lt;BR /&gt;I have checked that tGlobalMap("PartNumber") contains something by creating a var in the tMap component 
&lt;BR /&gt;and outputing content in a tLog component. This data is definitely filled. 
&lt;BR /&gt;Can you explain me why the tGlobalMap entry or the context variable are empty ? 
&lt;BR /&gt;Thanks ! 
&lt;BR /&gt;Stéphane</description>
      <pubDate>Sat, 16 Nov 2024 12:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleInput-dynamic-parameters/m-p/2294706#M67557</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T12:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: tOracleInput &amp; dynamic parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleInput-dynamic-parameters/m-p/2294707#M67558</link>
      <description>Hi 
&lt;BR /&gt;Please upload a screenshot of your job, I want to see whether you have already initialized the value before you use the context avariable or global variable. 
&lt;BR /&gt;BTW, you don't use the global variable correctly, to get the value of global variable, should be: 
&lt;BR /&gt;(String)globalMap.get("PartNumber") 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 24 Jun 2011 02:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleInput-dynamic-parameters/m-p/2294707#M67558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-24T02:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: tOracleInput &amp; dynamic parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleInput-dynamic-parameters/m-p/2294708#M67559</link>
      <description>Sorry, I made a typo error, I meant globalMap and not tGlobalMap.&lt;BR /&gt;You can see that I initialized the global map entry in a previous step.&lt;BR /&gt;That should work but it isn't !&lt;BR /&gt;Stéphane</description>
      <pubDate>Fri, 24 Jun 2011 08:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleInput-dynamic-parameters/m-p/2294708#M67559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-24T08:12:50Z</dc:date>
    </item>
  </channel>
</rss>

