
Announcements
Hi,
I have a Flow integrated into my App that outputs html to a PDF, the problem is that the borders for the table header do not display correctly. This is my html code:
<table width='100%' border='1' cellpadding='5' style='border: 1px solid black; border-collapse:collapse'>"&
"<tr style='background-color: #efefef'>
<th>Quantity</th>
<th>Description</th>
<th>Price Each</th>
<th>Total Price</th>
<th>Software</th>
</tr>
<tr> "& Concat(GalleryItemsDetails.AllItems,
"<td>" & DetailsItemQtyValue.Text & "</td>
<td>" & DetailsItemDetails.Text & "</td>
<td>" & DetailsItemCost.Text & "</td>
<td>" & DetailsLineValue.Text & "</td>
<td>" & DetailSoftwareDetails & "</td>","</td><tr>") &
"</table>
and this is what the output looks like:
can anyone tell me what i'm doing wrong?
thanks
Mike
@Anonymous
Try taking the extra </td> out and also consider using the ForAll instead of Concat for your formula, like this:
"<table width='100%' border='1' cellpadding='5' style='border: 1px solid black; border-collapse:collapse'>
<tr style='background-color: #efefef'>
<th>Quantity</th>
<th>Description</th>
<th>Price Each</th>
<th>Total Price</th>
<th>Software</th>
</tr>" &
ForAll(GalleryItemsDetails.AllItems,
"<tr>
<td>" & DetailsItemQtyValue.Text & "</td>
<td>" & DetailsItemDetails.Text & "</td>
<td>" & DetailsItemCost.Text & "</td>
<td>" & DetailsLineValue.Text & "</td>
<td>" & DetailSoftwareDetails.Text & "</td>
</tr>") &
"</table>"
Also noticed that you referenced DetailsSoftwareDetails in your original formula. I am assuming that is a text control also and needed the .Text
I hope this is helpful for you.