<?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 Display contents of Oracle table into HTML format mail using tSendmail in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Display-contents-of-Oracle-table-into-HTML-format-mail-using/m-p/2268066#M46747</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have been trying with the below approach but&amp;nbsp;not getting the data in proper email format . Could you please help !!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Design.JPG" style="width: 840px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz4L.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138489i4C99BA7691EC6896/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz4L.jpg" alt="0683p000009Lz4L.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tOracleDBInput:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;SELECT&lt;BR /&gt;'&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;'||TABLE_NAME.KEY_NUMBER||'&amp;lt;/td&amp;gt;'&lt;BR /&gt;||'&amp;lt;td&amp;gt;'||TABLE_NAME.TBL_NAME||'&amp;lt;/td&amp;gt;'&lt;BR /&gt;||'&amp;lt;td&amp;gt;'||TABLE_NAME.SCHEMA_1_COUNT||'&amp;lt;/td&amp;gt;'&lt;BR /&gt;||'&amp;lt;td&amp;gt;'||TABLE_NAME.&lt;SPAN&gt;SCHEMA_2&lt;/SPAN&gt;&lt;SPAN&gt;_COUNT&lt;/SPAN&gt;||'&amp;lt;/td&amp;gt;'&lt;BR /&gt;||'&amp;lt;td&amp;gt;'||TABLE_NAME.COUNT_DIFFERENCE||'&amp;lt;/td&amp;gt;'&lt;BR /&gt;||'&amp;lt;td&amp;gt;'||TABLE_NAME.UPDATED_TIME||'&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;BR /&gt;FROM TABLE_NAME;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tJavaRow:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;context.email = context.email + "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;" + input_row.KEY_NUMBER + "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + input_row.TBL_NAME + "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + input_row.SCHEMA_1_COUNT+ "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + input_row.SHEMA_2_COUNT + "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + input_row.COUNT_DIFFERENCE + "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + input_row.UPDATED_TIME+"" + "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;" ;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tSendmail:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"&amp;lt;head&amp;gt;&amp;lt;meta http-equiv=Content-Type content=text/html;&lt;BR /&gt;charset=iso-8859-15&amp;gt;&amp;lt;style type=text/css&amp;gt;table,TD, TH{&lt;BR /&gt;white-space: nowrap;&lt;BR /&gt;border:1px solid CornflowerGreen ;&lt;BR /&gt;font-size:12px;&lt;BR /&gt;font-family: Arial;&lt;BR /&gt;}&lt;BR /&gt;th{&lt;BR /&gt;white-space:nowrap;&lt;BR /&gt;background-color:CornflowerGreen;&lt;BR /&gt;color:Black;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;style&amp;gt;&amp;lt;head&amp;gt;Hi Team&amp;lt;p&amp;gt;&amp;lt;table&amp;gt;&amp;lt;th&amp;gt;KEY_NUMBER&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;&lt;BR /&gt;&amp;lt;TBL_NAME/th&amp;gt;&amp;lt;th&amp;gt;SCHEMA_1_COUNT&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;SCHEMA_2_COUNT&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;COUNT_DIFFERENCE&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;UPDATED_TIME&amp;lt;/th&amp;gt;&amp;lt;tr&amp;gt;"+context.email+"&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am getting only the Headers in the table. Could anyone guide me to get the table data as well.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Email Format:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HTML_Mail.JPG" style="width: 582px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzQg.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130237i08E0E83DEFDEDC17/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzQg.jpg" alt="0683p000009LzQg.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Table Format&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tABLE_fORMAT.JPG" style="width: 824px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzOB.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142791iDF957FC92183678C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzOB.jpg" alt="0683p000009LzOB.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;I will have more than 50 rows in table and the count will vary. What would be the best possible solution to get the data in HTML format thru tSendmail ?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Sep 2018 05:20:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-07T05:20:38Z</dc:date>
    <item>
      <title>Display contents of Oracle table into HTML format mail using tSendmail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Display-contents-of-Oracle-table-into-HTML-format-mail-using/m-p/2268066#M46747</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have been trying with the below approach but&amp;nbsp;not getting the data in proper email format . Could you please help !!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Design.JPG" style="width: 840px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz4L.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138489i4C99BA7691EC6896/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz4L.jpg" alt="0683p000009Lz4L.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tOracleDBInput:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;SELECT&lt;BR /&gt;'&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;'||TABLE_NAME.KEY_NUMBER||'&amp;lt;/td&amp;gt;'&lt;BR /&gt;||'&amp;lt;td&amp;gt;'||TABLE_NAME.TBL_NAME||'&amp;lt;/td&amp;gt;'&lt;BR /&gt;||'&amp;lt;td&amp;gt;'||TABLE_NAME.SCHEMA_1_COUNT||'&amp;lt;/td&amp;gt;'&lt;BR /&gt;||'&amp;lt;td&amp;gt;'||TABLE_NAME.&lt;SPAN&gt;SCHEMA_2&lt;/SPAN&gt;&lt;SPAN&gt;_COUNT&lt;/SPAN&gt;||'&amp;lt;/td&amp;gt;'&lt;BR /&gt;||'&amp;lt;td&amp;gt;'||TABLE_NAME.COUNT_DIFFERENCE||'&amp;lt;/td&amp;gt;'&lt;BR /&gt;||'&amp;lt;td&amp;gt;'||TABLE_NAME.UPDATED_TIME||'&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;BR /&gt;FROM TABLE_NAME;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tJavaRow:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;context.email = context.email + "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;" + input_row.KEY_NUMBER + "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + input_row.TBL_NAME + "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + input_row.SCHEMA_1_COUNT+ "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + input_row.SHEMA_2_COUNT + "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + input_row.COUNT_DIFFERENCE + "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + input_row.UPDATED_TIME+"" + "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;" ;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tSendmail:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"&amp;lt;head&amp;gt;&amp;lt;meta http-equiv=Content-Type content=text/html;&lt;BR /&gt;charset=iso-8859-15&amp;gt;&amp;lt;style type=text/css&amp;gt;table,TD, TH{&lt;BR /&gt;white-space: nowrap;&lt;BR /&gt;border:1px solid CornflowerGreen ;&lt;BR /&gt;font-size:12px;&lt;BR /&gt;font-family: Arial;&lt;BR /&gt;}&lt;BR /&gt;th{&lt;BR /&gt;white-space:nowrap;&lt;BR /&gt;background-color:CornflowerGreen;&lt;BR /&gt;color:Black;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;style&amp;gt;&amp;lt;head&amp;gt;Hi Team&amp;lt;p&amp;gt;&amp;lt;table&amp;gt;&amp;lt;th&amp;gt;KEY_NUMBER&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;&lt;BR /&gt;&amp;lt;TBL_NAME/th&amp;gt;&amp;lt;th&amp;gt;SCHEMA_1_COUNT&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;SCHEMA_2_COUNT&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;COUNT_DIFFERENCE&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;UPDATED_TIME&amp;lt;/th&amp;gt;&amp;lt;tr&amp;gt;"+context.email+"&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am getting only the Headers in the table. Could anyone guide me to get the table data as well.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Email Format:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HTML_Mail.JPG" style="width: 582px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzQg.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130237i08E0E83DEFDEDC17/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzQg.jpg" alt="0683p000009LzQg.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Table Format&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tABLE_fORMAT.JPG" style="width: 824px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzOB.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142791iDF957FC92183678C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzOB.jpg" alt="0683p000009LzOB.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;I will have more than 50 rows in table and the count will vary. What would be the best possible solution to get the data in HTML format thru tSendmail ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 05:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Display-contents-of-Oracle-table-into-HTML-format-mail-using/m-p/2268066#M46747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-07T05:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Display contents of Oracle table into HTML format mail using tSendmail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Display-contents-of-Oracle-table-into-HTML-format-mail-using/m-p/2268067#M46748</link>
      <description>Im not entirely sure on the tSendmail component... it clearly reads the body as an entire string or it auto-escape the string ... so maybe escape quotes using multiple double quotes or slashes to force/trick it ... look at the code view in stead of design view to see whats going on (select the tSendMail componet first before changing the view) ?&lt;BR /&gt;&lt;BR /&gt;Also Suggest use a global var and maybe a tJavaFlex where you set a global var in the 'post/after' section in the component: globalMap.put("tableBody", tableRows).&lt;BR /&gt;in the Main section you build up your rows in var tableRows.&lt;BR /&gt;in the tSendMail get it like : (String)globalMap.get("tableBody")&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Sep 2018 13:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Display-contents-of-Oracle-table-into-HTML-format-mail-using/m-p/2268067#M46748</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-09-10T13:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Display contents of Oracle table into HTML format mail using tSendmail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Display-contents-of-Oracle-table-into-HTML-format-mail-using/m-p/2268068#M46749</link>
      <description>Hi, you need to use tFlowtoIterate before tJava_row. For all record in input you need to iterate and write the current record into you context.message. i Hope this can help you.</description>
      <pubDate>Mon, 14 Jan 2019 13:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Display-contents-of-Oracle-table-into-HTML-format-mail-using/m-p/2268068#M46749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-14T13:51:09Z</dc:date>
    </item>
  </channel>
</rss>

