Parameters in templates
A parameter can provide text in either the value of an HTML element or the value to an attribute of an HTML element. The value of the HTML tag element can be an expression that consists of more than one parameter, as in the following example:
<td>Full Name:</td>
<td style="background:00ffff;${STYLE}"> ${FNAME} ${LNAME} </td>
<td style="background:00ffff;${STYLE}"> ${FNAME} ${LNAME} </td>
Where
- The first parameter, STYLE, specifies one or more additional style properties and values to control the appearance of the table cell defined by the <td> tag.
- The additional parameters, FNAME and LNAME, specify the content of the table cell.
In the following example, field IDs are used as parameters in the template content for two table rows.
<table>
<tr>
<td>First Name:</td>
<td style="background:00FFFF">$123456789$</td>
</tr>
<tr>
<td>Last Name</td>
<td style="background:00FFFF">$234567890$</td>
</tr>
<tr>
<td>First Name:</td>
<td style="background:00FFFF">$123456789$</td>
</tr>
<tr>
<td>Last Name</td>
<td style="background:00FFFF">$234567890$</td>
</tr>
In this example, the template is using explicit parameters to specify a background color for the First Name and Last Name fields in a table.
<table>
<tr>
<td>First Name:</td>
<td style="background:00ffff">${FNAME}</td>
</tr>
<tr>
<td>Last Name:</td>
<td style="background:00ffff">${LNAME}</td>
</tr>
<tr>
<td>Emp ID:</td>
<td style="background:00ffff">${EID}</td>
</tr>
</table>
<tr>
<td>First Name:</td>
<td style="background:00ffff">${FNAME}</td>
</tr>
<tr>
<td>Last Name:</td>
<td style="background:00ffff">${LNAME}</td>
</tr>
<tr>
<td>Emp ID:</td>
<td style="background:00ffff">${EID}</td>
</tr>
</table>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*