This documentation supports the 18.08 version of Remedy Action Request System.

To view the latest version, select the version from the Product version menu.

Parameters in templates

There are two kinds of parameters in templates:

  • Explicit parameters are named. They get their values from parameters of the TEMPLATE function and are represented by ${ parameterName}.
  • Implicit parameters are references to fields in a form. They get their values from the referenced fields and are represented by $ fieldID$.

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>



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>



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>
Was this page helpful? Yes No Submitting... Thank you

Comments