<?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: tMap Expression always return false when passing a string expression using context variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251170#M35205</link>
    <description>&lt;P&gt;Thankyou for the guidance &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;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2019 10:55:00 GMT</pubDate>
    <dc:creator>Prakhar1</dc:creator>
    <dc:date>2019-07-25T10:55:00Z</dc:date>
    <item>
      <title>tMap Expression always return false when passing a string expression using context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251162#M35197</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am trying to pass an expression in the tMap using context variable. like this&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="A.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6L5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145061i7041A9D5BEE10129/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6L5.png" alt="0683p000009M6L5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;But when I am passing it in the t Map to evaluate its Boolean value its always giving false as an output, whereas if i pass the same expression directly&amp;nbsp; it is giving true for that.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="B.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6LF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129432i8C90F32277839EF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6LF.png" alt="0683p000009M6LF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="C.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M645.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153624i0E727605933D1C7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M645.png" alt="0683p000009M645.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 07:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251162#M35197</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2019-07-25T07:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression always return false when passing a string expression using context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251163#M35198</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;first remark: context variables are linked to the job, not a component.&lt;/P&gt; 
&lt;P&gt;second remark: context variables are loaded at startup or with an tLoadContext component or explicitly assigned within the job (such as context.variable = value) (note that from my point of view, only the first use is recommanded).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;That being said, what you are trying to do cannot work this way: values in the Context panel will not be evaluated as Java expression.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Could you please explain what exaclty you are trying to do?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 07:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251163#M35198</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2019-07-25T07:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression always return false when passing a string expression using context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251164#M35199</link>
      <description>&lt;P&gt;I have a table containing the column names of the source table, and i want to take each column name and pass it in the expression. I will use java for this but i just tried it for one column but it's getting false output.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251164#M35199</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2019-07-25T08:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression always return false when passing a string expression using context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251165#M35200</link>
      <description>&lt;P&gt;Let's forgot the context part: why does the first column defined in your tMap doesn't work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your job, you have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;two db queries entering your tMap: what are they for?&lt;/LI&gt;&lt;LI&gt;no join between both that is to say that by default, you'll have a cross join (cartesian product of both queries) : that may give you a lot of rows!&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.designation &lt;STRONG&gt;will&lt;/STRONG&gt; have the different values of the input row: it seems to be what you want, doesn't it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251165#M35200</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2019-07-25T08:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression always return false when passing a string expression using context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251166#M35201</link>
      <description>&lt;P&gt;1) The first column works perfectly, but what will i do when i need to pass 100 columns in the same expression.&lt;/P&gt; 
&lt;P&gt;2) I forgot to join the 2 tables, but after that the same result is showing.&lt;/P&gt; 
&lt;P&gt;If this is not a good idea, can you tell me how to pass 100 different columns in the expression field in the same expression.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251166#M35201</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2019-07-25T08:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression always return false when passing a string expression using context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251167#M35202</link>
      <description>&lt;P&gt;Can't you use a tFlowToIterate to loop over your columns?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251167#M35202</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2019-07-25T08:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression always return false when passing a string expression using context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251168#M35203</link>
      <description>&lt;P&gt;i haven't used it before&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 09:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251168#M35203</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2019-07-25T09:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression always return false when passing a string expression using context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251169#M35204</link>
      <description>&lt;P&gt;It's never too late &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;One example:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tDBInput (read all columns) ==(row)==&amp;gt; tFlowToIterate ==(iterate)==&amp;gt; [ your process ]&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This will run [ your process ] as many times as you have a row as input (100 times if you have 100 columns for example).&lt;/P&gt; 
&lt;P&gt;In [your process], you'll be able to use a globalMap variable from the tFlowToIterate to have the current column name.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can see the documentation of the component&amp;nbsp;&lt;A href="https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/mtnT1I4S5wUa7ySeSHbZWA" target="_self" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 10:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251169#M35204</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2019-07-25T10:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression always return false when passing a string expression using context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251170#M35205</link>
      <description>&lt;P&gt;Thankyou for the guidance &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;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 10:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-always-return-false-when-passing-a-string/m-p/2251170#M35205</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2019-07-25T10:55:00Z</dc:date>
    </item>
  </channel>
</rss>

