<?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: Reading from table and converting any Float field to Integer in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Reading-from-table-and-converting-any-Float-field-to-Integer/m-p/2358821#M123771</link>
    <description>&lt;P&gt;Hi Rui&lt;/P&gt;&lt;P&gt;You don't need to add a Conversion Function unless you want to override the default conversion function using a customized function.  You just need to check the 'enable Auto-conversion of Types box on the Properties settings panel of tMap. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000ochUoAAI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127881iC5AC3D6C7E9E7F73/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000ochUoAAI.png" alt="0695b00000ochUoAAI.png" /&gt;&lt;/span&gt;Drag and drop the field from the input table to output table, change the Type from Float to Integer. see the image in my previous post. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2023 05:30:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-09-08T05:30:59Z</dc:date>
    <item>
      <title>Reading from table and converting any Float field to Integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-from-table-and-converting-any-Float-field-to-Integer/m-p/2358818#M123768</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm trying to create a Job that reads from a table and automatically converts any Float type field into Integer type, so that I can create a File with no float data type fields (just Integers).&lt;/P&gt;&lt;P&gt;I came across this option, in File -&amp;gt; Edit Project properties:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nT4ifAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131296i2F68EA82EADE84E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nT4ifAAC.png" alt="0695b00000nT4ifAAC.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've noticed this in my tMap component:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nT4kCAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154977iCD4BC354AC48F5AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nT4kCAAS.png" alt="0695b00000nT4kCAAS.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question to you is the following: Can I do this, without explicitly mentioning which fields I want converted? Is this the way I go about converting ANY Float field into an Integer?&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;P&gt;Rui&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-from-table-and-converting-any-Float-field-to-Integer/m-p/2358818#M123768</guid>
      <dc:creator>RMotta2408</dc:creator>
      <dc:date>2024-11-15T21:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from table and converting any Float field to Integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-from-table-and-converting-any-Float-field-to-Integer/m-p/2358819#M123769</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;The auto-conversation of types is only available from tMap between the columns in input table and output table, as seen below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nTBU6AAO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138756i6E373012F711FDF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nTBU6AAO.png" alt="0695b00000nTBU6AAO.png" /&gt;&lt;/span&gt;You need to add the column in the output table and specify the column from input table in the expression field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 02:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-from-table-and-converting-any-Float-field-to-Integer/m-p/2358819#M123769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-07T02:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from table and converting any Float field to Integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-from-table-and-converting-any-Float-field-to-Integer/m-p/2358820#M123770</link>
      <description>&lt;P&gt;Hello @Shicong Hong​&amp;nbsp;, good morning.&lt;/P&gt;&lt;P&gt;Thank you for replying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything else I must do in this screen so that tMap works as you mentioned?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nTC8pAAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145910iFC8B21735E772E62/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nTC8pAAG.png" alt="0695b00000nTC8pAAG.png" /&gt;&lt;/span&gt;Do I need to add a &lt;B&gt;&lt;I&gt;Conversion Function&lt;/I&gt;&lt;/B&gt;? If so, how?&lt;/P&gt;&lt;P&gt;Normally, when I use a conversion function, I need to specify the fields. Here I don't see how I can do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Rui&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 09:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-from-table-and-converting-any-Float-field-to-Integer/m-p/2358820#M123770</guid>
      <dc:creator>RMotta2408</dc:creator>
      <dc:date>2023-09-07T09:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from table and converting any Float field to Integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-from-table-and-converting-any-Float-field-to-Integer/m-p/2358821#M123771</link>
      <description>&lt;P&gt;Hi Rui&lt;/P&gt;&lt;P&gt;You don't need to add a Conversion Function unless you want to override the default conversion function using a customized function.  You just need to check the 'enable Auto-conversion of Types box on the Properties settings panel of tMap. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000ochUoAAI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127881iC5AC3D6C7E9E7F73/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000ochUoAAI.png" alt="0695b00000ochUoAAI.png" /&gt;&lt;/span&gt;Drag and drop the field from the input table to output table, change the Type from Float to Integer. see the image in my previous post. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 05:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-from-table-and-converting-any-Float-field-to-Integer/m-p/2358821#M123771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-08T05:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from table and converting any Float field to Integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-from-table-and-converting-any-Float-field-to-Integer/m-p/2358822#M123772</link>
      <description>&lt;P&gt;Hello @Shicong Hong​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying.&lt;/P&gt;&lt;P&gt;I was able to create these conversions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000ociXjAAI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138522i2AAFF2170D449EA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000ociXjAAI.png" alt="0695b00000ociXjAAI.png" /&gt;&lt;/span&gt;The default conversion function I get when I add a new line is always the same: &lt;/P&gt;&lt;P&gt;&lt;I&gt;String.valueOf(${0})&lt;/I&gt;&lt;/P&gt;&lt;P&gt;And it does not change, no matter what type I choose in the Source or Target fields. So I have to write the conversion function, according to the Source and Target types.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Float --&amp;gt; String --&amp;gt; Integer &lt;/I&gt;is the way I found to transform from Float to Integer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rui&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 12:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-from-table-and-converting-any-Float-field-to-Integer/m-p/2358822#M123772</guid>
      <dc:creator>RMotta2408</dc:creator>
      <dc:date>2023-09-08T12:47:03Z</dc:date>
    </item>
  </channel>
</rss>

