Data dictionariesA data dictionary is a collection of descriptions about a data model or system. LN uses two unique data dictionaries: the Runtime Data Dictionary and the Application Data Dictionary. This section describes the purpose of the Runtime Data Dictionary, the purpose of the Application Data Dictionary, and how you convert data from the Application Data Dictionary to the Runtime Data Dictionary. The Runtime Data Dictionary The Runtime Data Dictionary (RTDD) refers to the files and data that are used to run the system, hence the term “runtime”. The purpose of the RTDD is two-fold:
Configuration Information The RTDD is necessary because the system is configurable in its technical architecture. If this configuration information were stored in a database, the system would not know how to get this information, or from what database to get it. The system would not know the language to present any messages, or the programs it should start to support the system. To address these issues, information is available from the application server’s operating system during the bshell startup procedure. Optimized Application Information The application repeatedly requires a lot of information about the application components that are running. While this information could come from a database, because the information may be required frequently, and changes are infrequent, it is faster and more efficient to pre-process this information and store it in a compressed and optimized way. Examples of this type of information are date formats, menus, toolbar texts, menus and forms. Application components like forms, form fields, and labels are stored in a database. To gather all the information from a database when it is needed by a running system would slow down the system. Therefore, the system uses a convert function to compile this information into an optimized format. The Application Data Dictionary While the runtime data dictionary is stored in the application server’s operating system and some Enterprise Server tables, the Application Data Dictionary (APDD) is data stored in tables. The APDD data is accessed by sessions. By having the APDD stored as data and accessible in the sessions, this allows administrators to easily administer the system using sessions, and allows developers to easily develop applications in the system. In this way, the application administration environment and application development environment are fundamentally the same as the application execution environment. The APDD data is stored in company number 000. Convert to Runtime Data Dictionary After the application data dictionary data is maintained in the sessions, the information intended for the RTDD must be extracted from the APDD, reformatted or optimized and made available in the runtime data dictionary. This process is called “Convert to Runtime”. The optimized information is in one of these formats:
The categories of making the APDD available at runtime include:
How do you know when a convert to runtime is required? This can be a difficult question. The most effective way is to see if the session has a convert to runtime button or a pull down menu item under the Specific menu. A convert to runtime is required, for example, for Package Combinations, Tables and Domains. Other entities require a compile step to make the APDD information available for use. Usually, compile steps do not require signing out of the system (a change to the users start menu is a notable exception). Compilation is required, for example, for:
Convert to Runtime Sessions There is a number of Convert to Runtime sessions that is used during software development. Usually, you can initiate a convert to runtime for an entity from the Specific menu in the session that maintains that entity. When more than one entity requires conversion, or when more than one element in an entity changes, you can use a conversion session that is accessible from the menu browser. For example:
| |||||||||