Hi There
I am trying to send data from a PostgreSQL query via a HTML function through Email. The problem is to dynamically create the rows. Here is what i have so far in a standard template node.
Any advice would be appreciated
<head>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<h2>Dayly Alarms</h2>
<table id="table" border="1">
<tr>
<th>created</th>
<th>device_type</th>
<th>ack_by</th>
<th>Ack_time</th>
<th>alarm_type</th>
<th>device_imei</th>
<th>device_id</th>
<th>site</th>
</tr>
<tr ng-repeat="row in msg.payload">
<td>{{payload[prop].created}}</td>
<td>{{payload[prop].device_type}}</td>
<td>{{payload[prop].ack_by}}</td>
<td>{{payload[prop].Ack_time}}</td>
<td>{{payload[prop].alarm_type}}</td>
<td>{{payload[prop].device_imei}}</td>
<td>{{payload[prop].device_id}}</td>
<td>{{payload[prop].site}}</td>
</tr>
</table>
</body>