DAL 2

DAL 2 scripts are introduced in LN. A DAL 2 script contains all business logic related to a particular table. The UI scripts of the sessions operating on the table only contain UI logic.

DAL 2 scripts are suited for integrations via the LN Business Adapter software. Other applications can connect to LN tables through Business Objects. The business logic in the table's DAL 2 script is executed automatically. To build an integration, you do not need to rebuild this business logic in the BOIs that provide the interface.

Various predefined Business Objects, that can be used for integration purposes, are delivered with LN. DAL 2 scripts are only available for tables used in these business objects. For the remaining tables, DAL 1 scripts are available. For details on business objects and integration technology, see the LN Business Adapter documentation.

In DAL 2 various new hooks are introduced. A DAL 2 script can contain the following:

Object hooks These hooks are identical to the object hooks in DAL 1 scripts.
Field hooks

These hooks contain the business logic for table fields and can contain logic to do the following:

  • Verify valid values on a table field (logical integrity rules).
  • Make a field read-only. For example, the contact field of the Business Partner is not a required entry, and is a display field in the UI when the Business Partner is created.
  • Make a field invisible.
  • Automatically update a field, after a related field was changed. See "Field Dependencies".
  • Make input on a field mandatory.
  • Hide a particular enumerated constant from an enum list.
Business method hooks. These hooks disable/enable and hide specific form commands of type "business method".

For details on DAL 2 scripts, see "DAL 2 Overview" in the Infor ES Programmers Guide (Infor Customer Portal KB2924522).