<?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: Passing a global Map variable in the schema name. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Passing-a-global-Map-variable-in-the-schema-name/m-p/2210374#M8824</link>
    <description>&lt;P&gt;Look at your previous error message and the error message you are getting for this. They are different. So the globalMap call change has done something. You need to know the SQL that is generated by that String manipulation and then test that SQL. If you try out what I suggested it will print the SQL that is generated so that you can test or see what is happening.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 22:17:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-01T22:17:02Z</dc:date>
    <item>
      <title>Passing a global Map variable in the schema name.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-a-global-Map-variable-in-the-schema-name/m-p/2210369#M8819</link>
      <description>&lt;P&gt;I got null values when I passed a global map variable as a schema name in the query.&amp;nbsp; Even though, there's a value that pass from tlogRow. &amp;nbsp; Below is my job.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="etl1.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2Kv.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155271iC70186876AAB6AD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2Kv.jpg" alt="0683p000009M2Kv.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="etl2.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2cg.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158020i5B374EFE0BA4A13C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2cg.jpg" alt="0683p000009M2cg.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It should be getting the value = flcbmtg.&amp;nbsp; Can you please help me on this?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="etl3.JPG" style="width: 849px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2tG.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144296i30AD0150B259AB75/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2tG.jpg" alt="0683p000009M2tG.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 17:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-a-global-Map-variable-in-the-schema-name/m-p/2210369#M8819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-01T17:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a global Map variable in the schema name.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-a-global-Map-variable-in-the-schema-name/m-p/2210370#M8820</link>
      <description>&lt;P&gt;There are a couple of things wrong where you use your globalMap. First of all, the tFlowToIterate names the globalMap key using the row that feeds it and the column name. The row that feeds it is row4 not row1. The other issue is that you will need to cast that value from Object. The globalMap will default all objects to Object. To do this, just use the following code....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;((String)globalMap.get("row4.current_schema"))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 17:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-a-global-Map-variable-in-the-schema-name/m-p/2210370#M8820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-01T17:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a global Map variable in the schema name.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-a-global-Map-variable-in-the-schema-name/m-p/2210371#M8821</link>
      <description>&lt;P&gt;Thank you...&lt;/P&gt; 
&lt;P&gt;But I'm still getting this error.&amp;nbsp; Is it possible that it cannot process the schema that global map variable is getting?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="etl4.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2tQ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139966iD8DF5AAD4A77677F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2tQ.jpg" alt="0683p000009M2tQ.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 18:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-a-global-Map-variable-in-the-schema-name/m-p/2210371#M8821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-01T18:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a global Map variable in the schema name.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-a-global-Map-variable-in-the-schema-name/m-p/2210372#M8822</link>
      <description>&lt;P&gt;OK, deactivate your DB component and everything after that. Add a tJava after the tFlowToIterate component. Then&amp;nbsp; add your query String to the tJava and save it to a String variable. Then use a System.out.println() call to print that query to the output window. This will show you what is not working properly. If the output from this works in your DB query analyser, then it will work in Talend.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 19:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-a-global-Map-variable-in-the-schema-name/m-p/2210372#M8822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-01T19:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a global Map variable in the schema name.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-a-global-Map-variable-in-the-schema-name/m-p/2210373#M8823</link>
      <description>&lt;P&gt;Thanks again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did put the global variable in TJavarow and its getting the schema that I need, it's just that when I replace it here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;FROM \""+context.tandem_Database+"\".\""+((String)globalMap.get("row4.current_schema"))+"\".\"party_contacts\"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;It's reading it like null.party_contacts&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 20:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-a-global-Map-variable-in-the-schema-name/m-p/2210373#M8823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-01T20:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a global Map variable in the schema name.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-a-global-Map-variable-in-the-schema-name/m-p/2210374#M8824</link>
      <description>&lt;P&gt;Look at your previous error message and the error message you are getting for this. They are different. So the globalMap call change has done something. You need to know the SQL that is generated by that String manipulation and then test that SQL. If you try out what I suggested it will print the SQL that is generated so that you can test or see what is happening.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 22:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-a-global-Map-variable-in-the-schema-name/m-p/2210374#M8824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-01T22:17:02Z</dc:date>
    </item>
  </channel>
</rss>

