<?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 Handling multiple conditions in TMAP in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Handling-multiple-conditions-in-TMAP/m-p/2351828#M118404</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt; 
&lt;P&gt;I have been using multiple conditions in my tmap to handle two conditions. Below is the logic Im using.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;row2.SPRIDEN_ID==null ? "Unknown" :row3.RPRATRM_USER_ID.equals("WWW_USER") ? "N/A" : row2.SPRIDEN_FIRST_NAME&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The first condition works and Im able to see Unknown where ever there are nulls in the SPRIDEN_ID but the second condition is not working meaning Im not able to see N/A where ever there is WWW_USER.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please correct me if Im missing anything in the syntax. I have attached the picture and the one highlighted in yellow should be N/A.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank You&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="Capture.PNG" style="width: 799px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5QB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137651iDD4DEDC1894F3F01/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5QB.png" alt="0683p000009M5QB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2019 17:28:59 GMT</pubDate>
    <dc:creator>DEV4</dc:creator>
    <dc:date>2019-06-04T17:28:59Z</dc:date>
    <item>
      <title>Handling multiple conditions in TMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-multiple-conditions-in-TMAP/m-p/2351828#M118404</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt; 
&lt;P&gt;I have been using multiple conditions in my tmap to handle two conditions. Below is the logic Im using.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;row2.SPRIDEN_ID==null ? "Unknown" :row3.RPRATRM_USER_ID.equals("WWW_USER") ? "N/A" : row2.SPRIDEN_FIRST_NAME&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The first condition works and Im able to see Unknown where ever there are nulls in the SPRIDEN_ID but the second condition is not working meaning Im not able to see N/A where ever there is WWW_USER.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please correct me if Im missing anything in the syntax. I have attached the picture and the one highlighted in yellow should be N/A.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank You&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="Capture.PNG" style="width: 799px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5QB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137651iDD4DEDC1894F3F01/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5QB.png" alt="0683p000009M5QB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 17:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-multiple-conditions-in-TMAP/m-p/2351828#M118404</guid>
      <dc:creator>DEV4</dc:creator>
      <dc:date>2019-06-04T17:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple conditions in TMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-multiple-conditions-in-TMAP/m-p/2351829#M118405</link>
      <description>&lt;P&gt;The below Java is basically saying "When SPRIDEN_ID is null, set the value to "UNKNOWN". If SPRIDEN_ID is not null AND RPRATRM_USER_ID equals "WWW_USER", set the value to "N/A". Otherwise, set the value to what is held by SPRIDEN_FIRST_NAME"&lt;/P&gt;
&lt;PRE&gt;row2.SPRIDEN_ID==null ? "Unknown" :row3.RPRATRM_USER_ID.equals("WWW_USER") ? "N/A" : row2.SPRIDEN_FIRST_NAME&lt;/PRE&gt;
&lt;P&gt;So, I suspect that in your example, that SPRIDEN_ID is null when RPRATRM_USER_ID is "WWW_USER"&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 18:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-multiple-conditions-in-TMAP/m-p/2351829#M118405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-04T18:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple conditions in TMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-multiple-conditions-in-TMAP/m-p/2351830#M118406</link>
      <description>&lt;P&gt;Thanks for the reply. As you suspected,&amp;nbsp;&lt;SPAN&gt;SPRIDEN_ID is &lt;STRONG&gt;not null&lt;/STRONG&gt; when RPRATRM_USER_ID is "WWW_USER".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But I changes the expression as below and that worked. Now im able to see N/A for the WWW_USER&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;row3.RPRATRM_USER_ID.equals("WWW_USER") ? "N/A" : row2.SPRIDEN_ID == null ? "Unknown" : row2.SPRIDEN_FIRST_NAME &lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 19:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-multiple-conditions-in-TMAP/m-p/2351830#M118406</guid>
      <dc:creator>DEV4</dc:creator>
      <dc:date>2019-06-04T19:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple conditions in TMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-multiple-conditions-in-TMAP/m-p/2351831#M118407</link>
      <description>&lt;P&gt;That is interesting. Are you sure SPRIDEN_ID was not null? The code you used could not have returned that value unless it was null.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The change that you have made simply changes the order in which the logic is applied. The first test is "Does RPRATRM_USER_ID equal 'WWW_USER'?". If that part of the code is true, it doesn't bother to check the rest since it knows what to do at that point. It's only if it does not match "WWW_USER" that the next condition is checked.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 19:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-multiple-conditions-in-TMAP/m-p/2351831#M118407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-04T19:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiple conditions in TMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-multiple-conditions-in-TMAP/m-p/2351832#M118408</link>
      <description>&lt;P&gt;Sorry looks like I was not clear with the info I gave you. Below is the logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if RPRATRM_USER_ID is WWW_USER then "N/A"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mean to say if&amp;nbsp;RPRATRM_USER_ID is WWW_USER then no need to worry about the SPRIDEN_ID, we need to just print it as N/A.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 19:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-multiple-conditions-in-TMAP/m-p/2351832#M118408</guid>
      <dc:creator>DEV4</dc:creator>
      <dc:date>2019-06-04T19:25:23Z</dc:date>
    </item>
  </channel>
</rss>

