<?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: Convert tOracle_input to tOracle_row for prepared statement with dynamic row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Convert-tOracle-input-to-tOracle-row-for-prepared-statement-with/m-p/2285195#M58817</link>
    <description>&lt;P&gt;Not really what I was looking for as it still does the tOracleInput. I resolved it with a tJavaRow and processed the record set rather than the dynamic row.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2019 07:07:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-11T07:07:35Z</dc:date>
    <item>
      <title>Convert tOracle_input to tOracle_row for prepared statement with dynamic row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-tOracle-input-to-tOracle-row-for-prepared-statement-with/m-p/2285193#M58815</link>
      <description>&lt;P&gt;I have a tOracleInput with the following query&lt;/P&gt;&lt;P&gt;"SELECT * FROM VW_LATEST WHERE "+&lt;BR /&gt;DTC_EVENT_ID = "+context.event_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is inefficient and needs to be converted to a prepared statement using tOracleRow. However the output from the tOracleInput is a dynamic row. How can I convert from the object in tOracleRow to a dynamic row output?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 10:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-tOracle-input-to-tOracle-row-for-prepared-statement-with/m-p/2285193#M58815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-09T10:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert tOracle_input to tOracle_row for prepared statement with dynamic row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-tOracle-input-to-tOracle-row-for-prepared-statement-with/m-p/2285194#M58816</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; You can pass the output of tDBRow to a tFlowtoIterate component where the column name is called "query". In the tDBInput, use COntrol+Space to get this value under tFlowtoIterate component. When you select it, it will add to query section as shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 777px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8Ak.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152807i6CAF2655DA682077/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8Ak.png" alt="0683p000009M8Ak.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 22:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-tOracle-input-to-tOracle-row-for-prepared-statement-with/m-p/2285194#M58816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-10T22:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Convert tOracle_input to tOracle_row for prepared statement with dynamic row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-tOracle-input-to-tOracle-row-for-prepared-statement-with/m-p/2285195#M58817</link>
      <description>&lt;P&gt;Not really what I was looking for as it still does the tOracleInput. I resolved it with a tJavaRow and processed the record set rather than the dynamic row.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 07:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-tOracle-input-to-tOracle-row-for-prepared-statement-with/m-p/2285195#M58817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-11T07:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Convert tOracle_input to tOracle_row for prepared statement with dynamic row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-tOracle-input-to-tOracle-row-for-prepared-statement-with/m-p/2285196#M58818</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 424px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M88G.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155400iD2445A2D3695F02A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M88G.png" alt="0683p000009M88G.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;TJavaRow has the following code&lt;/P&gt; 
&lt;PRE&gt;java.sql.ResultSet re_tParseRecordSet_3 = (java.sql.ResultSet) row7.dynamicRow;


boolean hasNextRecord_tParseRecordSet_3 = false;
saRowMap = ((java.util.Map&amp;lt;String, Object&amp;gt;)globalMap.get("saRowMap"));
globalMap.put("saRowMap", saRowMap);
int numColumns1 = re_tParseRecordSet_3.getMetaData().getColumnCount();
//System.out.println(numColumns1);
//System.out.println(saRowMap);
hasNextRecord_tParseRecordSet_3 = re_tParseRecordSet_3.next();
for (int i = 1; i &amp;lt; numColumns1 + 1; i++) {
//System.out.println(i);

String colName = re_tParseRecordSet_3.getMetaData().getColumnName(i);

if (!saRowMap.containsKey(colName)) {
Object colVal = re_tParseRecordSet_3.getObject(i);
// System.out.println(colName);
// System.out.println(re_tParseRecordSet_3.getMetaData().getColumnTypeName(i));
if ("DATE".equals(re_tParseRecordSet_3.getMetaData().getColumnTypeName(i)) &amp;amp;&amp;amp; colVal != null){
colVal = TalendDate.formatDate("dd/MM/yyyy", (Date) colVal);
// System.out.println(colName);
}
// System.out.println(colVal);
saRowMap.put(colName, colVal);
}
}

RulesEngine.evaluateExpressions(saRowMap,
(List&amp;lt;java.util.Map&amp;lt;String, String&amp;gt;&amp;gt;)context.j902_exprList,
(List&amp;lt;java.util.Map&amp;lt;String, String[]&amp;gt;&amp;gt;)context.j902_paramList);

output_row.EVENT_ID = context.event_id;
output_row.STATUS_ID = 30;
output_row.INPUT_MAP = saRowMap;
output_row.CHANGE_USER = "TALEND";
//System.out.println(output_row);&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Oct 2019 11:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-tOracle-input-to-tOracle-row-for-prepared-statement-with/m-p/2285196#M58818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-11T11:13:07Z</dc:date>
    </item>
  </channel>
</rss>

