<?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: Mapping - Adding conditions in tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276156#M52329</link>
    <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hello,&lt;BR /&gt;I want to put some condition in my tMap.&lt;BR /&gt;I have a tiFileInuptDelimited-&amp;gt;tMap -&amp;gt;tPostgresqlOutput (my database is Postgres).&lt;BR /&gt;All my column in my File are string and I want to put some condition in my tMap to put my data in my table with Integer, Char, Date, etc....&lt;BR /&gt;So for the Date, I have a regex expression in my condition and in the expression of my field I am using TalendDate.parseDate ("dd/MM/yyyy", row1.date). So it works when my data of my File is not empty because othwersie it doesn't work.&lt;BR /&gt;I tried to put another condition (String.valueOf(row1.date).equals("")) but i have still the same error message:&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: ""&lt;BR /&gt; at java.text.DateFormat.parse(DateFormat.java:335)&lt;BR /&gt; at routines.TalendDate.parseDate(TalendDate.java:85)&lt;BR /&gt; ... 3 more&lt;BR /&gt;I also have tried to put String.valueOf(row1;date)==null and i don't have an error but that doesn't go to the database.....&lt;BR /&gt;And i have the same rpoblem when i want to parse the String in an Integer....&lt;BR /&gt;with Integer.parseInt&lt;BR /&gt;thank you for your help&lt;BR /&gt;tomlaurenttalend&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;if you have a new/different question, post it in its own topic (makes it easier 1. for people to realize you have a new question. 2. see that your question has not already been answered), like you did later yesterday: 4655 
&lt;BR /&gt;also, don't post the same question in multiple topics</description>
    <pubDate>Fri, 07 Nov 2008 17:55:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-11-07T17:55:58Z</dc:date>
    <item>
      <title>Mapping - Adding conditions in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276153#M52326</link>
      <description>Let us say Table1 (T1) has following columns
&lt;BR /&gt;C1
&lt;BR /&gt;C2
&lt;BR /&gt;C3
&lt;BR /&gt;C4
&lt;BR /&gt;Table2 (T2) has following columns
&lt;BR /&gt;C1
&lt;BR /&gt;C2
&lt;BR /&gt;C3
&lt;BR /&gt;C4
&lt;BR /&gt;I need to do a mapping and move C2, C3 and C4 from T2 to new table T3 only when T1.C1 == T2.C1 &amp;amp;&amp;amp; T1.C2 == T2.C2 &amp;amp;&amp;amp; T1.C3 == T2.C3
&lt;BR /&gt;Please help</description>
      <pubDate>Sat, 16 Nov 2024 14:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276153#M52326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping - Adding conditions in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276154#M52327</link>
      <description>Well more simply 
&lt;BR /&gt; 
&lt;BR /&gt;create output table in tMap and ad a filter (+-&amp;gt;) with your condition 
&lt;BR /&gt; 
&lt;BR /&gt;else you can use a triple inner join 
&lt;BR /&gt; 
&lt;BR /&gt;Best Regards 
&lt;BR /&gt; 
&lt;BR /&gt;jeremie</description>
      <pubDate>Wed, 15 Oct 2008 13:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276154#M52327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-15T13:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping - Adding conditions in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276155#M52328</link>
      <description>Hello, 
&lt;BR /&gt;I want to put some condition in my tMap. 
&lt;BR /&gt;I have a tiFileInuptDelimited-&amp;gt;tMap -&amp;gt;tPostgresqlOutput (my database is Postgres). 
&lt;BR /&gt;All my column in my File are string and I want to put some condition in my tMap to put my data in my table with Integer, Char, Date, etc.... 
&lt;BR /&gt;So for the Date, I have a regex expression in my condition and in the expression of my field I am using TalendDate.parseDate ("dd/MM/yyyy", row1.date). So it works when my data of my File is not empty because othwersie it doesn't work. 
&lt;BR /&gt;I tried to put another condition (String.valueOf(row1.date).equals("")) but i have still the same error message: 
&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: "" 
&lt;BR /&gt; at java.text.DateFormat.parse(DateFormat.java:335) 
&lt;BR /&gt; at routines.TalendDate.parseDate(TalendDate.java:85) 
&lt;BR /&gt; ... 3 more 
&lt;BR /&gt;I also have tried to put String.valueOf(row1;date)==null and i don't have an error but that doesn't go to the database..... 
&lt;BR /&gt;And i have the same rpoblem when i want to parse the String in an Integer.... 
&lt;BR /&gt;with Integer.parseInt 
&lt;BR /&gt;thank you for your help 
&lt;BR /&gt;tomlaurenttalend</description>
      <pubDate>Fri, 07 Nov 2008 08:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276155#M52328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-07T08:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping - Adding conditions in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276156#M52329</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hello,&lt;BR /&gt;I want to put some condition in my tMap.&lt;BR /&gt;I have a tiFileInuptDelimited-&amp;gt;tMap -&amp;gt;tPostgresqlOutput (my database is Postgres).&lt;BR /&gt;All my column in my File are string and I want to put some condition in my tMap to put my data in my table with Integer, Char, Date, etc....&lt;BR /&gt;So for the Date, I have a regex expression in my condition and in the expression of my field I am using TalendDate.parseDate ("dd/MM/yyyy", row1.date). So it works when my data of my File is not empty because othwersie it doesn't work.&lt;BR /&gt;I tried to put another condition (String.valueOf(row1.date).equals("")) but i have still the same error message:&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: ""&lt;BR /&gt; at java.text.DateFormat.parse(DateFormat.java:335)&lt;BR /&gt; at routines.TalendDate.parseDate(TalendDate.java:85)&lt;BR /&gt; ... 3 more&lt;BR /&gt;I also have tried to put String.valueOf(row1;date)==null and i don't have an error but that doesn't go to the database.....&lt;BR /&gt;And i have the same rpoblem when i want to parse the String in an Integer....&lt;BR /&gt;with Integer.parseInt&lt;BR /&gt;thank you for your help&lt;BR /&gt;tomlaurenttalend&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;if you have a new/different question, post it in its own topic (makes it easier 1. for people to realize you have a new question. 2. see that your question has not already been answered), like you did later yesterday: 4655 
&lt;BR /&gt;also, don't post the same question in multiple topics</description>
      <pubDate>Fri, 07 Nov 2008 17:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276156#M52329</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-07T17:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping - Adding conditions in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276157#M52330</link>
      <description>by using which transformations(all) is possible to put conditions for mapping?(i know tmap,other than else...)</description>
      <pubDate>Wed, 25 Feb 2009 07:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276157#M52330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-25T07:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping - Adding conditions in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276158#M52331</link>
      <description>Hi, 
&lt;BR /&gt;I want to create a condition in the Talend TMap, here's what I do: when the value in the Code column of the table source = "W" in the attribute table CodeDisplay the destination, I would like to display "Woman" and if I find "M" I put "Man" here's what I have but it does not work: 
&lt;BR /&gt;row1.code.equals ("W")? "Woman": "Man" 
&lt;BR /&gt;I tried that too: 
&lt;BR /&gt;row1.code.equals ('W')? "Woman", "Man" / / simple coat with '' 
&lt;BR /&gt;Is what we can put together three alternatives for example: 
&lt;BR /&gt;if it is equal to 'W' to women, if it is equal to "M" to "Man", and if it is not W or M, to "Undefined" 
&lt;BR /&gt;Could you help me please? 
&lt;BR /&gt;Here is the error that appears: 
&lt;BR /&gt;Start a job SujetDuStage 08/09/2011 10:03. 
&lt;BR /&gt;java.lang.NoClassDefFoundError: talenddemosjava/sujetdustage_0_1/SujetDuStage 
&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: talenddemosjava.sujetdustage_0_1.SujetDuStage 
&lt;BR /&gt;at java.net.URLClassLoader $ 1.run (Unknown Source) 
&lt;BR /&gt;at java.security.AccessController.doPrivileged (Native Method) 
&lt;BR /&gt;at java.net.URLClassLoader.findClass (Unknown Source) 
&lt;BR /&gt;at java.lang.ClassLoader.loadClass (Unknown Source) 
&lt;BR /&gt;at sun.misc.Launcher $ AppClassLoader.loadClass (Unknown Source) 
&lt;BR /&gt;at java.lang.ClassLoader.loadClass (Unknown Source) 
&lt;BR /&gt;Could not find the main class: talenddemosjava.sujetdustage_0_1.SujetDuStage. Program Will Exit. 
&lt;BR /&gt;Exception in thread "main" 
&lt;BR /&gt;Job SujetDuStage ended at 10:03 08/09/2011. 
&lt;BR /&gt;thank you</description>
      <pubDate>Tue, 09 Aug 2011 09:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276158#M52331</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-08-09T09:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping - Adding conditions in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276159#M52332</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;if it is equal to 'W' to women, if it is equal to "M" to "Man", and if it is not W or M, to "Undefined"&lt;BR /&gt;Could you help me please?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;The expression as below should work: 
&lt;BR /&gt;row1.code.equals("W")?"Woman" 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;row1.code.equals("M")?"Man":undefined") 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi,&lt;BR /&gt;Start a job SujetDuStage 08/09/2011 10:03.&lt;BR /&gt;java.lang.NoClassDefFoundError: talenddemosjava/sujetdustage_0_1/SujetDuStage&lt;BR /&gt; &lt;BR /&gt;thank you&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;This is another problem, the class file is missing, I think you could get the same problem on other jobs. 
&lt;BR /&gt;Which OS? Do you have blank space in the installation path? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 09 Aug 2011 09:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-Adding-conditions-in-tmap/m-p/2276159#M52332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-09T09:41:14Z</dc:date>
    </item>
  </channel>
</rss>

