3 2 1 How are Repository Fields Used

Visual LANSA

3.2.1 How are Repository Fields Used?

The repository field definitions are the foundation of your business application. The objects within the repository are often built off these basic definitions. Your components and the functions will be built using the field definitions so it is very important to take time to carefully define fields in the repository. It is the centralization of a single definition and its reuse that provides the great productivity benefits.

Properly defining all field characteristics in the repository is critical. When you define a field's characteristics, you are really defining screen layouts, report layouts and other important information which will be used in your applications. For example, a default value defined in the repository will be automatically used when a screen is displayed; or a function can ask for a field to be set to its default, based on the repository field value. It is important to take the time to carefully consider each characteristic of the field definition.

Remember, the LANSA Repository is an Active Object Repository. (Refer to What is an Active Repository?) For example, a prompt function can be assigned to fields in the repository. The specified prompt function is automatically available from each screen on which the field appears. When the prompt function is changed in the repository, the new function is immediately available on all screens in the application. There is no recompilation of the application.

If you are using LANSA's Multilingual Support Facility (MSF), you will enter descriptions, labels and column headings for all languages specified for the partition. As noted earlier, MSF allows a single application to be executed in more than one language at the same time. (Refer to Multilingual Applications and System & Multilingual Variables Development.)

Also, remember that the LANSA Repository is "open" and the information can be shared and reused. Other PC-based application development tools can access the repository field definitions and use this information when creating and executing their applications. (Refer to Open Model .)

Ý 3.2 Developing with Fields