<?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: Implementing Case Statement in tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Implementing-Case-Statement-in-tmap/m-p/2248821#M33554</link>
    <description>You can use a global variable for that. This variable...
&lt;BR /&gt;((String)globalMap.get("tFileInputExcel_1_CURRENT_SHEET"))
&lt;BR /&gt;..... will tell your tMap what the current sheet is. Remember that the key is the name of your component. Basically you will need to change the number.</description>
    <pubDate>Mon, 08 Oct 2018 22:47:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-08T22:47:27Z</dc:date>
    <item>
      <title>Implementing Case Statement in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Implementing-Case-Statement-in-tmap/m-p/2248818#M33551</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have couple of doubts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. How can i implement the below CASE logic inside tMap?&lt;/P&gt;
&lt;P&gt;CASE&lt;BR /&gt;WHEN month = "Jan" THEN 1&lt;BR /&gt;WHEN month = "Feb" THEN 2&lt;BR /&gt;WHEN month = "Mar" THEN 3&lt;BR /&gt;WHEN month = "Apr" THEN 4&lt;BR /&gt;WHEN month = "May" THEN 5&lt;BR /&gt;WHEN month = "Jun" THEN 6&lt;BR /&gt;WHEN month = "Jul" THEN 7&lt;BR /&gt;WHEN month = "Aug" THEN 8&lt;BR /&gt;WHEN month = "Sep" THEN 9&lt;BR /&gt;WHEN month = "Oct" THEN 10&lt;BR /&gt;WHEN month = "Nov" THEN 11&lt;BR /&gt;WHEN month = "Dec" THEN 12&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. If my source input is excel and the target column is in PostgreSQL then how can i insert values to this target column using the worksheet name as per the CASE logic below-&lt;/P&gt;
&lt;P&gt;CASE&lt;BR /&gt;WHEN data FROM&lt;EM&gt;&lt;STRONG&gt; PlannedPLC Worksheet&lt;/STRONG&gt;&lt;/EM&gt; THEN "PLC"&lt;BR /&gt;WHEN data FROM &lt;EM&gt;&lt;STRONG&gt;MDR Worksheet&lt;/STRONG&gt;&lt;/EM&gt; THEN "PLC"&lt;BR /&gt;WHEN data FROM &lt;EM&gt;&lt;STRONG&gt;DOSH Worksheet&lt;/STRONG&gt;&lt;/EM&gt; THEN "PLC"&lt;BR /&gt;WHEN data FROM &lt;EM&gt;&lt;STRONG&gt;PlannedGS Worksheet&lt;/STRONG&gt;&lt;/EM&gt; THEN "Gas"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Dipanjan&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 14:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Implementing-Case-Statement-in-tmap/m-p/2248818#M33551</guid>
      <dc:creator>dipanjan93</dc:creator>
      <dc:date>2018-10-08T14:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Case Statement in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Implementing-Case-Statement-in-tmap/m-p/2248819#M33552</link>
      <description>&lt;P&gt;Look at the answer I gave here:&amp;nbsp;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjx1CAC#M85008" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Using-local-variable-in-tmap-expression-builder/m-p/136652#M85008&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 15:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Implementing-Case-Statement-in-tmap/m-p/2248819#M33552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-08T15:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Case Statement in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Implementing-Case-Statement-in-tmap/m-p/2248820#M33553</link>
      <description>Hi 
&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;, 
&lt;BR /&gt; 
&lt;BR /&gt;Many Thanks for the prompt response. 
&lt;BR /&gt;This way I was able to solve my 1st issue. Anything regarding the second issue? 
&lt;BR /&gt; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Dipanjan 
&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Oct 2018 15:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Implementing-Case-Statement-in-tmap/m-p/2248820#M33553</guid>
      <dc:creator>dipanjan93</dc:creator>
      <dc:date>2018-10-08T15:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Case Statement in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Implementing-Case-Statement-in-tmap/m-p/2248821#M33554</link>
      <description>You can use a global variable for that. This variable...
&lt;BR /&gt;((String)globalMap.get("tFileInputExcel_1_CURRENT_SHEET"))
&lt;BR /&gt;..... will tell your tMap what the current sheet is. Remember that the key is the name of your component. Basically you will need to change the number.</description>
      <pubDate>Mon, 08 Oct 2018 22:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Implementing-Case-Statement-in-tmap/m-p/2248821#M33554</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-08T22:47:27Z</dc:date>
    </item>
  </channel>
</rss>

