This function constructs a HTML table from a DriveWorks table.
SppConvertTableToHTMLTable([Table array])
Where:
Table array is the Table array to be converted to a HTML table.
This function will return an error when:
Rule | Meaning |
---|---|
SppConvertTableToHTMLTable(DwLookupOfficeSupplies) | Will convert the table Office Supplies into HTML. |
SppConvertTableToHTMLTable({"Item","Price","Quantity";"HB Pencil","0.60","3"}) | Will convert the given array into HTML. |
The following are escaping characters and, if they exist in the table array, will be converted in the result:
Character | Replaced with |
---|---|
< | < |
> | > |
& | & |
" | " |
The table OfficeSupplies contains the following data:
Item | Price | Quantity |
---|---|---|
HB Pencil | 0.60 | 3 |
2B Pencil | 0.60 | 2 |
Black Biro | 0.80 | 1 |
Rubber | 1.50 | 1 |
HB Pencil | 0.60 | 2 |
Black Biro | 0.80 | 1 |
The table above will result in the following HTML:
<table> <tr> <th>Item</th> <th>Price</th> <th>Quantity</th> </tr> <tr> <td>HB Pencil</td> <td>0.60</td> <td>3</td> </tr> <tr> <td>2B Pencil</td> <td>0.60</td> <td>2</td> </tr> <tr> <td>Black Biro</td> <td>0.80</td> <td>1</td> </tr> <tr> <td>Rubber</td> <td>1.50</td> <td>1</td> </tr> <tr> <td>HB Pencil</td> <td>0.60</td> <td>2</td> </tr> <tr> <td>Black Biro</td> <td>0.80</td> <td>1</td> </tr> </table>