<?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: How to truncate a string in a tjavarow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-truncate-a-string-in-a-tjavarow/m-p/2320384#M142042</link>
    <description>&lt;P&gt;You can use the standard Java String methods to achieve this or write your own routine (essentially a Java class) to do this if you need to apply complicated rules to decide upon how to truncate the Strings. &lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2022 10:40:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-04T10:40:07Z</dc:date>
    <item>
      <title>How to truncate a string in a tjavarow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-truncate-a-string-in-a-tjavarow/m-p/2320383#M142041</link>
      <description>&lt;P&gt;Hello! I have a problem when inserting a dynamic file into an oracle table, there are fields in the file of length greater than 4000, I am trying to shorten the string to the length that allows me to insert in the table(Drop create)&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-truncate-a-string-in-a-tjavarow/m-p/2320383#M142041</guid>
      <dc:creator>JMartin1</dc:creator>
      <dc:date>2024-11-15T22:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate a string in a tjavarow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-truncate-a-string-in-a-tjavarow/m-p/2320384#M142042</link>
      <description>&lt;P&gt;You can use the standard Java String methods to achieve this or write your own routine (essentially a Java class) to do this if you need to apply complicated rules to decide upon how to truncate the Strings. &lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 10:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-truncate-a-string-in-a-tjavarow/m-p/2320384#M142042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-04T10:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate a string in a tjavarow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-truncate-a-string-in-a-tjavarow/m-p/2320385#M142043</link>
      <description>&lt;P&gt;Hi!, samething like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Dynamic dyn = row1.InputRow;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;for(int i = 0; i &amp;lt; dyn.getColumnCount(); i++){&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;DynamicMetadata meta = dyn.getColumnMetadata(i);&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;//&amp;nbsp;&amp;nbsp;System.out.println(meta.getName()+ "; " + StringHandling.SUBSTR(dyn.getColumnValue(i).toString(), 1,&amp;nbsp;10));&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&amp;nbsp;&amp;nbsp;dyn.setColumnValue(i, StringHandling.SUBSTR(dyn.getColumnValue(i).toString(), 1,&amp;nbsp;4000));&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&amp;nbsp;&amp;nbsp;meta.setLength(4000);&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;}&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;row2.InputRow = dyn;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 14:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-truncate-a-string-in-a-tjavarow/m-p/2320385#M142043</guid>
      <dc:creator>JMartin1</dc:creator>
      <dc:date>2022-10-06T14:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate a string in a tjavarow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-truncate-a-string-in-a-tjavarow/m-p/2320386#M142044</link>
      <description>&lt;P&gt;A while ago I wrote a blog on doing something similar to this. I have just hunted it out as it is no longer available on our blog page here. You can see it here....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://web.archive.org/web/20200919070520/https://www.talend.com/blog/2019/11/11/migrate-data-between-databases-one-job-using-dynamic-schema/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code should be a good pointer about how to get access to the columns in a dynamic schema.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-truncate-a-string-in-a-tjavarow/m-p/2320386#M142044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-06T15:10:34Z</dc:date>
    </item>
  </channel>
</rss>

