It seems like I don't get the expected result from a
LIST_TABLE_START when I'm trying to populate data in an HTML table.
<table>
<tr>
<td>
...
</td>
</tr>
</table>
Exactly where am I supposed to put the LIST_TABLE_START(Find Lead WHERE Lead.ps_Owner.ID = RegularUser.ID)
and how smart is it? Does it insert any start/end tags of its own?
I need to produce an HTML Report, per se. Not using the Report Writer. Just trying to merge some attributes into a complex HTML email.
Whats the best way to go about this?
The above HTML stub is very basic.
Here's my real HTML fragment where I need the merge:
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 500px;" class="responsive-table">
<tr><td><h2>APPOINTMENTS</h2></td>
</tr><<LIST_TABLE_START(`Find Appointment WHERE Appointment.ps_User=RegularUser and Appointment.StarttimeDATE=CURRENT_DATE ORDER BY Appointment.StarttimeTIME`)>>
<tr>
<td style="padding: 10px 0 0 0; border-top: 1px dashed #aaaaaa;">
<!-- TWO COLUMNS -->
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td valign="top" class="mobile-wrapper">
<table cellpadding="0" cellspacing="0" border="0" width="60%" style="width: 60%;" align="left">
<tr>
<td style="padding: 0 0 10px 0;">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td align="left" style="font-family: Arial, sans-serif; color: #333333; font-size:16px;">
<<AS_STRING(Appointment.StartTime,'hh:mm a')>>, <<Appointment.Subject>> from <<Appointment.ob_Lead.Company>></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="35%" style="width: 35%;" align="right">
<tr>
<td style="padding: 0 0 10px 0;">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td align="right" style="font-family: Arial, sans-serif; color: #333333; font-size: 16px;">
<a href="tel:<<Appointment.ob_Lead.Phone>>"><<Appointment.ob_Lead.Phone>><<LIST_TABLE_END()>></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>