Understanding Generic Templates

You can call generic templates from any PeopleCode program. Use generic templates when a component template does not meet your requirements. For example, you might use generic templates when developing:

  • Application Engine PeopleCode.

  • Service Operation handler PeopleCode.

  • Notifications being sent in the background in a component, for which the user is not prompted with the Send Notification page.

  • Applications that need to have more control of the Send Notification page to set default To, CC, or BCC values, or to set default message text that is editable.

  • Applications that need to send HTML email.

Note:

The SYSTEMDEFAULT generic template is a special case. It is used by the Notify toolbar button on all components if there are no other component templates defined for that component. You cannot add template variables for SYSTEMDEFAULT. Two template variables are available for this template: %1, which generates a component URL for the page with only search keys from which the Notify button is selected; and %2, which generates a component URL for the page with both search keys and alternate search keys. Do not change this template unless you want to make a system-wide change.