<?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: Talend Newbie in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-Newbie/m-p/2218728#M13810</link>
    <description>Hi 
&lt;BR /&gt;In this case, you should use tJavaFlex instead of tJavaRow, you can learn the difference between these two components in this article 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/article/ka03p0000006EXqAAM" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/What-is-the-difference-between-tJava-tJavaRow-and-tJavaFlex/ta-p/21505&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;And change your job to 
&lt;BR /&gt;tMysqlInput--main--tJavaFlex--main-tFileOutputDelimited 
&lt;BR /&gt;|onsubjobok 
&lt;BR /&gt;tSendMail 
&lt;BR /&gt; 
&lt;BR /&gt;It will send only one email in the end of job. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Fri, 25 Oct 2019 02:50:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-25T02:50:04Z</dc:date>
    <item>
      <title>Talend Newbie</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Newbie/m-p/2218727#M13809</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have recently started using Talend. I am trying to create and schedule a job that extracts data from a MySQL database and email the results.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is what my Designer section looks like.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t1.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7tD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140389i2544C3E11EFDB962/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7tD.png" alt="0683p000009M7tD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The data is being fetched BUT&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff"&gt;Issue 1: instead of just one email, several emails are being generated with identical results.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have used tJavaRow to incorporate some js into my job. To show the output in a table format, I have used html tags:&lt;/P&gt; 
&lt;P&gt;The email that is being received looks like this:&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="t2.PNG" style="width: 598px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7tI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154599i3D82363D6B9A07E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7tI.png" alt="0683p000009M7tI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is what my tJavaRow code looks like:&lt;/P&gt; 
&lt;PRE&gt;output_row.EngineID = input_row.EngineID;
output_row.Status = input_row.Status;



if (input_row.Status.equals("Server Was Rebooted!")){
	output_row.color = "Red";
}else 
	output_row.color = "Green";

	

String msg = ((String)globalMap.getOrDefault("mailMsg", "&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;EngineID&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Status&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;color&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;"));
msg = msg +
 "&amp;lt;tr&amp;gt;" +
 "&amp;lt;td&amp;gt;" + output_row.EngineID + "&amp;lt;/td&amp;gt;" +
 "&amp;lt;td&amp;gt;" + output_row.Status + "&amp;lt;/td&amp;gt;" +
 "&amp;lt;td&amp;gt;" + output_row.color + "&amp;lt;/td&amp;gt;" +
 "&amp;lt;/tr&amp;gt;";

globalMap.put("mailMsg", msg);&lt;/PRE&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff"&gt;Issue 2: why doesn't the email show the table borders? I have also tried inserting table border in my html tags? where can I put the css? it gives me errors when I place them in my tJavaRow component.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any good practices that you would like to share with a newbie?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Newbie/m-p/2218727#M13809</guid>
      <dc:creator>adbawany</dc:creator>
      <dc:date>2024-11-16T04:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Newbie</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Newbie/m-p/2218728#M13810</link>
      <description>Hi 
&lt;BR /&gt;In this case, you should use tJavaFlex instead of tJavaRow, you can learn the difference between these two components in this article 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/article/ka03p0000006EXqAAM" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/What-is-the-difference-between-tJava-tJavaRow-and-tJavaFlex/ta-p/21505&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;And change your job to 
&lt;BR /&gt;tMysqlInput--main--tJavaFlex--main-tFileOutputDelimited 
&lt;BR /&gt;|onsubjobok 
&lt;BR /&gt;tSendMail 
&lt;BR /&gt; 
&lt;BR /&gt;It will send only one email in the end of job. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 25 Oct 2019 02:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Newbie/m-p/2218728#M13810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-25T02:50:04Z</dc:date>
    </item>
  </channel>
</rss>

