Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

[HTML] How to add table borders in text tool - eml format

Joker_Hazard
11 - Bolide

Morning all.

I have a workflow that creates a email draft with attachments. It also creates the body of an email, however I am trying to create a table with borders using html commands. The problem is, the table is created but the borders dont show up. 

I was hoping someone here in the community to know html and help me out with this doubt. I would be great to fix this.

Its line 21 in text tool! 

Joker_Hazard_0-1657982194538.png



Thank you very much!

5 REPLIES 5
Amol_Telore
11 - Bolide

Hey @Joker_Hazard 

 

I have modified your HTML code with CSS and now HTML code shows table borders. Please note that it is best practice to use <th></th> syntax for table headers and <td></td> syntax for columns. Hope this is what your looking for and solves your concern.

 

 

<html>
<head>
<style>
table, th, td {border: 2px solid BLACK ;border-collapse: collapse;}
</style>
</head>
<body>

<table><tr><th>First Name</th><th>Last name</th></tr></table>This is an email with test <b>attachments</b>

</body>
</html>

 

 

Amol_Telore_0-1657988533661.png

I was under impression that you are facing issues with HTML code. Let me know if you have any questions with regards to workflow.

Joker_Hazard
11 - Bolide

This is absolutely incredible! Thank you very much @Amol_Telore 

Excuse my extra questions, however I need some opinions from an expert.

How can I add background colours? And, How to have same width on the cells to be more visual?

thanks!!!

Amol_Telore
11 - Bolide

 

@Joker_Hazard I am not sure if i get your question completely. But if you were asking about increasing the width of cell, I have added width property. You can modify property as per your need.

 

Regarding first question, background-color property is used to add coloring in table. Below is updated code.

 

<html>
<head>
<style>
table, th, td {
border: 2px solid BLACK ;
border-collapse: collapse;
background-color:lightblue;
width:400px}
</style>
</head>
<body>

<table><tr><th>First Name</th><th>Last name</th></tr></table>This is an email with test <b>attachments</b>

</body>
</html>

 

HugoT
6 - Meteoroid

Hi @Amol_Telore,

 

Thanks for your excellent solution, but my specific data disappears in Email table. Could kindly check what's wrong in my case, thanks.

 

The letter after equal sign & before another sign disappears with following sign, I believe that code is "AB=Z</td>" and then transferred by "AB=/td>". Please find an example in attach.

 

Thanks a lot if you can advise some solution.

Amol_Telore
11 - Bolide

Hey @HugoT 

 

Hope you are doing well.

 

Will you able to create a sample workflow and replicate the issue? This will help me to understand what you are trying to achieve and your issue in more detail. Thanks!

 

Also, I am on business visit from tomorrow so please expect a little delay in response. 

 

Regards,

Amol Telore

Labels
Top Solution Authors