Field Templates
If you intend to create multiple fields that have the same purpose, you can create a field template that specifies the appearance and behavior of the field. Field templates are prototypes from which you can generate individual fields on a form. The field template can contain both the visual properties of the field and a field script.
Using field templates offers the following advantages:
• Decreases time and errors involved in creating fields
• Lets you standardize similar fields within and across your applications (by using included applications)
For example, you can create a template for a Save button that looks the same and executes the same 4GL code on every frame where you include it. You need only to create the button and write the code once; you then can use the same button whenever you need it without having to recreate the field or write a new script.
Because field templates are application components, you can use them on any frame in an application. You also can create one application containing all your field templates, and then include this application in every application that you create throughout your organization.
Last modified date: 06/25/2024