<?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: [resolved] tMap &amp; Conditions Problems (conversion) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328814#M98067</link>
    <description>Hi, 
&lt;BR /&gt;You should use row1.CLITPR.equals("*")?"1":"2" without Import_as400_presta.id_default_group. It is just an example to make the String result "true" or "false" more clear.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
    <pubDate>Tue, 08 Jul 2014 09:08:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-08T09:08:41Z</dc:date>
    <item>
      <title>[resolved] tMap &amp; Conditions Problems (conversion)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328809#M98062</link>
      <description>Hello everybody, 
&lt;BR /&gt;I'm beginner on Talend Open Studio for Big Data, i use it for integrate AS400 data's to Prestashop database. 
&lt;BR /&gt; 
&lt;BR /&gt;My problem is the following : 
&lt;BR /&gt;I have two table and i have a problem with my condition (cf : screenshot) 
&lt;BR /&gt;This is my condition : 
&lt;BR /&gt;row1.CLITPR!="*"?Import_as400_presta.id_default_group=="2":Import_as400_presta.id_default_group=="1" 
&lt;BR /&gt; 
&lt;BR /&gt;When i execute i have the following problem : 
&lt;BR /&gt;Impossible to convert boolean to String ! 
&lt;BR /&gt;But i made exactly as i saw on differents forums ! 
&lt;BR /&gt;Help me please ! 
&lt;BR /&gt;Thank you ! 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MELo.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139301i6971B72FE8BF9F25/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MELo.png" alt="0683p000009MELo.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEVi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142915i4ED5C9AACCE1CF83/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEVi.png" alt="0683p000009MEVi.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328809#M98062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap &amp; Conditions Problems (conversion)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328810#M98063</link>
      <description>Hi, 
&lt;BR /&gt;It is ternary if-else operator in tMap. Condition?value if true: value if false
&lt;BR /&gt;E.g.
&lt;BR /&gt;(row1.name == null) ? "true"(value) : "false"(row1.name) returns the String "true" or "false" based on a Boolean value.
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;row1.CLITPR!="*"?Import_as400_presta.id_default_group=="2":Import_as400_presta.id_default_group=="1"&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Could you please tell us more about your use case?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 08 Jul 2014 07:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328810#M98063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-08T07:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap &amp; Conditions Problems (conversion)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328811#M98064</link>
      <description>Hi,&lt;BR /&gt;Thank you for your answer !&lt;BR /&gt;I want this result in the case default_group :&lt;BR /&gt;row1.CLITPR!="*"?Import_as400_presta.id_default_group=="2":Import_as400_presta.id_default_group=="1"   &lt;BR /&gt;To summarize: if CLITPR is different to "*"  then the default group is "2" else the default group  is "1"&lt;BR /&gt;The result of the second table depends on the value of the primary table .&lt;BR /&gt;Do you know what i mean ?&lt;BR /&gt;&lt;BR /&gt;Thank you Sabrina</description>
      <pubDate>Tue, 08 Jul 2014 08:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328811#M98064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-08T08:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap &amp; Conditions Problems (conversion)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328812#M98065</link>
      <description>Hi, 
&lt;BR /&gt;If I understand you well, you can use expression as:
&lt;BR /&gt;
&lt;PRE&gt;row1.CLITPR.equals("*")?"Import_as400_presta.id_default_group==1":"Import_as400_presta.id_default_group==2"&lt;BR /&gt;The result will return the String "true" or "false" based on a Boolean value.&lt;/PRE&gt;
&lt;BR /&gt;Let me know if it is OK with you.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 08 Jul 2014 08:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328812#M98065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-08T08:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap &amp; Conditions Problems (conversion)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328813#M98066</link>
      <description>Hi, 
&lt;BR /&gt;I have already used this solution ! 
&lt;BR /&gt;My needs are : 
&lt;BR /&gt;The result will return the String "1" or "2" in the case default_group and not a boolean. 
&lt;BR /&gt;Let me know if it is OK with you Sabrina 
&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;</description>
      <pubDate>Tue, 08 Jul 2014 08:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328813#M98066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-08T08:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap &amp; Conditions Problems (conversion)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328814#M98067</link>
      <description>Hi, 
&lt;BR /&gt;You should use row1.CLITPR.equals("*")?"1":"2" without Import_as400_presta.id_default_group. It is just an example to make the String result "true" or "false" more clear.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 08 Jul 2014 09:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328814#M98067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-08T09:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap &amp; Conditions Problems (conversion)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328815#M98068</link>
      <description>Oh God IT WORKS ! 
&lt;BR /&gt;Thank You Sabrina ! 
&lt;BR /&gt; 
&lt;BR /&gt;I love Youuuuuuuuuuuuuuuuu! 
&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;</description>
      <pubDate>Tue, 08 Jul 2014 09:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328815#M98068</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-08T09:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap &amp; Conditions Problems (conversion)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328816#M98069</link>
      <description>Hi, &lt;BR /&gt;Glad you could solve the issue. Could you click the "Set this topic as Resolved"?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 08 Jul 2014 10:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-Conditions-Problems-conversion/m-p/2328816#M98069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-08T10:12:41Z</dc:date>
    </item>
  </channel>
</rss>

