<?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 Convert Dynamic to String in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Convert-Dynamic-to-String/m-p/2333933#M102666</link>
    <description>&lt;P&gt;I have a requirement to run a series of 49 SQL statements and collect the results.&lt;/P&gt;&lt;P&gt;These SQL statements are stored in a Snowflake table. I need to read the table get each of the 49 SQL statements, execute each of them and collect the results of each into another table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One issue is that the 49 statements return 49 different sets of results (ex: number of fields and field type). I found I can run and display the results with output column of type Dynamic. The target table has a type of String so I need to convert the dynamic field to one big string instead of extracting the individual fields.&lt;/P&gt;&lt;P&gt;I tired using a tExtractDynamicFields with a string as the output but it comes out NULL.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:21:33 GMT</pubDate>
    <dc:creator>rmcclure</dc:creator>
    <dc:date>2024-11-16T00:21:33Z</dc:date>
    <item>
      <title>Convert Dynamic to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Dynamic-to-String/m-p/2333933#M102666</link>
      <description>&lt;P&gt;I have a requirement to run a series of 49 SQL statements and collect the results.&lt;/P&gt;&lt;P&gt;These SQL statements are stored in a Snowflake table. I need to read the table get each of the 49 SQL statements, execute each of them and collect the results of each into another table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One issue is that the 49 statements return 49 different sets of results (ex: number of fields and field type). I found I can run and display the results with output column of type Dynamic. The target table has a type of String so I need to convert the dynamic field to one big string instead of extracting the individual fields.&lt;/P&gt;&lt;P&gt;I tired using a tExtractDynamicFields with a string as the output but it comes out NULL.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Dynamic-to-String/m-p/2333933#M102666</guid>
      <dc:creator>rmcclure</dc:creator>
      <dc:date>2024-11-16T00:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dynamic to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Dynamic-to-String/m-p/2333934#M102667</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You need to get the schema properties and &lt;/P&gt;&lt;P&gt;concatenate all fields into one string on a tJavaRow,/tJavaFlex, please look at this &lt;A href="https://www.talend.com/blog/2019/11/11/migrate-data-between-databases-one-job-using-dynamic-schema/" alt="https://www.talend.com/blog/2019/11/11/migrate-data-between-databases-one-job-using-dynamic-schema/" target="_blank"&gt;blog &lt;/A&gt;to learn how to get the schema properties at runtime. &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>Mon, 29 Mar 2021 07:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Dynamic-to-String/m-p/2333934#M102667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-29T07:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dynamic to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Dynamic-to-String/m-p/2333935#M102668</link>
      <description>&lt;P&gt;hi you could do something like this in a tJavaRow with input_row Dynamic and output_row String :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dynamic columns = input_row.newColumn;&lt;/P&gt;&lt;P&gt;String str ="";&lt;/P&gt;&lt;P&gt;for (int i = 0; i &amp;lt; columns.getColumnCount(); i++) {&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DynamicMetadata columnMetadata = columns.getColumnMetadata(i);&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;str += columns.getColumnValue(i);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;output_row.newColumn = str;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 08:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Dynamic-to-String/m-p/2333935#M102668</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-03-30T08:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dynamic to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Dynamic-to-String/m-p/2333936#M102669</link>
      <description>&lt;P&gt;Hello Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply! But I am hoping this blog post you shared can be made available again. I really think this is exactly what I am looking for. Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 12:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Dynamic-to-String/m-p/2333936#M102669</guid>
      <dc:creator>archienesss</dc:creator>
      <dc:date>2022-05-12T12:54:25Z</dc:date>
    </item>
  </channel>
</rss>

