When you work in AcuBench, you are provided with a series of default templates, used as the basis for creating new programs, data layout files, screens, reports, and files. In addition to these defaults, you have the option to create your own custom screen, report, and file templates. Using custom templates can help you to maintain a consistent code structure and program appearance across an application or application suite.
The Template portion of the Tools > Options interface lets you determine how both the AcuBench default templates and your own custom templates are made available for your use. You can even entirely disable the File > New dialog box that allows you to choose the base template for programs, data layout files, screens, reports, and files, such that basic, default characteristics are always used when you create a new program item.
The process of creating templates is discussed elsewhere in this manual. Source file templates are discussed in Using Source Code Templates, screen templates are discussed in Adding Screen Templates, and report templates are described in Adding Report Templates. All files added using this dialog box are displayed in the New File, New Screen, or New Report template group, depending on the template type.
Follow these steps to set Template options:
When you de-select an option, the File > New dialog does not appear when you opt to create a new element of the specified type. Instead, a default element type is automatically created. The defaults are:
|Standard Program (a program structure file with an empty screen)
|Blank Graphical (an empty graphical screen)
|Blank Graphical (an empty graphical report)
|Source Template (a very basic file with COBOL divisions and AcuBench tags)
|Blank (launches the File Designer, bypassing the Import option)
To remove a template that you have previously added to the interface, select the template icon and click Delete. To modify the title, file path, or description of a template, select its icon and click Modify.
You cannot change the set of default templates using this interface.