This chapter provides an overview of HTML definitions and discusses how to:
Create an HTML definition.
Open an HTML definition.
Reference HTML definitions dynamically.
An HTML definition is a blank window where you can enter HTML. Use HTML definitions for storing long strings of HTML text or HTML text that you use repeatedly in your application. You can later access the definition dynamically from an HTML area control by using the GetHTMLText PeopleCode function.
See GetHTMLText.
You can reference HTML definitions from an HTML area control statically or dynamically. However, the most common usage is to reference HTML definitions dynamically.
To create an HTML definition:
Select File, New.
The New Definition dialog box opens enabling you to select the definition you want.
Select HTML from the scroll area.
Click OK to open a new HTML definition.
Type or paste the HTML text directly into the open definition window.
Select File, Save to save the HTML definition.
The HTML definition is saved in the current database.
To open an HTML Definition:
Select File, Open to access the Open Definition dialog box.
Select HTML from the Definition drop-down list box.
Click Open to show all of the HTML definitions that are currently stored in the database.
You can also enter a letter or word in the Name edit box to filter the display. For example, entering the letter H reveals all of the HTML definitions that begin with H in the database.
Naming a group of HTML definitions with the same introductory phrase can help keep them together for easy selecting.
To reference an HTML definition dynamically:
Add an HTML area control to a page definition.
Open the HTML Area Properties dialog box.
On the HTML tab, enter the GetHTMLText PeopleCode function for the HTML definition that you want to reference.
Click OK.
See Also
Using HTML Definitions and the GetHTMLText Function