12.1 HTML as Field Contents

A technique that can be used to enhance your application is to embed the HTML as the contents of one or more fields in your application. The HTML will be accepted as browser instructions.

For example, if you wanted to embed hyperlinks into your application, the HTML for the hyperlink could be the value of a particular field. The field could be a working field in your RDML function. The value of the field can be assigned programmatically.

For example, the DEPTAB file contains a Department Code and Department Description. If you were to use a Department Description as follows:

<center>Adminstration Department</center>

then the HTML tags would be processed by the browser and only the data would be displayed as follows:

Administration Department

The Department Description would appear centered in the display.