<?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 how to use tParseRecordSet with dynamic columns in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tParseRecordSet-with-dynamic-columns/m-p/2283966#M57762</link>
    <description>hello,
&lt;BR /&gt;I have a SQL query which looks like this:&amp;nbsp;
&lt;BR /&gt;"select " + &amp;nbsp;context.fields + " from " + context.tablename
&lt;BR /&gt;Each run can pass different fields and different tablename.
&lt;BR /&gt;The resultSet is passed to tParseRecordSet.
&lt;BR /&gt;I wan't to get the columns that I used in the select query (context.fields), but I get an error.
&lt;BR /&gt;It forces me to put the exact columns (by name) I want to get.
&lt;BR /&gt;Is there a way to fetch from the resultSet dynamically?&amp;nbsp;
&lt;BR /&gt;
&lt;BR /&gt;Thanks</description>
    <pubDate>Sun, 18 Oct 2015 09:46:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-18T09:46:41Z</dc:date>
    <item>
      <title>how to use tParseRecordSet with dynamic columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tParseRecordSet-with-dynamic-columns/m-p/2283966#M57762</link>
      <description>hello,
&lt;BR /&gt;I have a SQL query which looks like this:&amp;nbsp;
&lt;BR /&gt;"select " + &amp;nbsp;context.fields + " from " + context.tablename
&lt;BR /&gt;Each run can pass different fields and different tablename.
&lt;BR /&gt;The resultSet is passed to tParseRecordSet.
&lt;BR /&gt;I wan't to get the columns that I used in the select query (context.fields), but I get an error.
&lt;BR /&gt;It forces me to put the exact columns (by name) I want to get.
&lt;BR /&gt;Is there a way to fetch from the resultSet dynamically?&amp;nbsp;
&lt;BR /&gt;
&lt;BR /&gt;Thanks</description>
      <pubDate>Sun, 18 Oct 2015 09:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tParseRecordSet-with-dynamic-columns/m-p/2283966#M57762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-18T09:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tParseRecordSet with dynamic columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tParseRecordSet-with-dynamic-columns/m-p/2283967#M57763</link>
      <description>Which component is used to execute this query? what error are you getting? Can you please upload some screenshots of your job?</description>
      <pubDate>Mon, 19 Oct 2015 08:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tParseRecordSet-with-dynamic-columns/m-p/2283967#M57763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T08:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tParseRecordSet with dynamic columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tParseRecordSet-with-dynamic-columns/m-p/2283968#M57764</link>
      <description>The first component is tOracleRow with an object as a schema and contains the query: 
&lt;BR /&gt;&amp;nbsp;"select " + &amp;nbsp;context.fields + " from " + context.tablename 
&lt;BR /&gt;(context.fields = "id, name, address") 
&lt;BR /&gt;I want to read the resultSet without knowing the names of the columns and create a XML file from it (for example). 
&lt;BR /&gt;The tParseRecordSet can read a resultSet but in the attribute table I have to put the actual names of the columns - and I want to extract generic fields. 
&lt;BR /&gt;If it put context.fields in it, it get an error java.sql.SQLException: Invalid column name. 
&lt;BR /&gt;I know i can write a java code to do this, but if there's another way, it'll be great. 
&lt;BR /&gt;It seems odd that I can execute a dynamic SQL with no schema, pass the resultSet to another component, but unable to run through the resultSet dynamically. 
&lt;BR /&gt;At the moment, the job looks like this: 
&lt;BR /&gt;tOracleRow ------&amp;gt; tParseRecordSet ------&amp;gt; tLogRow 
&lt;BR /&gt;Attribute table: 
&lt;BR /&gt;column &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value 
&lt;BR /&gt;----------------------------- 
&lt;BR /&gt;id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;"id" 
&lt;BR /&gt;name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;"name" 
&lt;BR /&gt;address &amp;nbsp; &amp;nbsp; | &amp;nbsp;"address" 
&lt;BR /&gt;Thanks,</description>
      <pubDate>Mon, 19 Oct 2015 15:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tParseRecordSet-with-dynamic-columns/m-p/2283968#M57764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T15:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tParseRecordSet with dynamic columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tParseRecordSet-with-dynamic-columns/m-p/2283969#M57765</link>
      <description>Yes, you have to input the value to map the real column name in the attribute table, it does not support context variable. To create a XML file, you still need to define the XML tree and configure the mapping between the column name and the element/attributes.</description>
      <pubDate>Tue, 20 Oct 2015 05:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tParseRecordSet-with-dynamic-columns/m-p/2283969#M57765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-20T05:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tParseRecordSet with dynamic columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tParseRecordSet-with-dynamic-columns/m-p/2283970#M57766</link>
      <description>Hi, I was wondering if there's any news regarding this issue. maybe in talend 6?&lt;BR /&gt;Thanks,</description>
      <pubDate>Thu, 04 Feb 2016 11:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tParseRecordSet-with-dynamic-columns/m-p/2283970#M57766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-04T11:48:27Z</dc:date>
    </item>
  </channel>
</rss>

