Library files used by code events

Files, variables, and records used by generated apps.

libdbapp

The libdbapp package is part of the BAM template set located at $GSTDIR/bin (or, if you are on a Mac, $GSTDIR/Contents/MacOS)/src/ag/tpl/dbappversion. The compiled binary versions are stored in the /bin directory. Source files are accessible at /src directory.

Each file has a specific role providing functions, declared public variables, and constants that are used in the generation of the code. When a generated program is built, these files are linked with the other program files to create the executable application.
Table 1. Library files used by a generated app
File Description
libdbappCore.4gl This file includes common functions for managing errors and strings.
libdbappEvents.4gl This file includes constants, and types related to code events.
libdbappExt.4gl This file includes common functions for managing the interaction with mobile device peripherals. See Add mobile device features (Photo, Gallery, Phone, Mail, SMS, Contact, Maps, Barcode)
libdbappFormUI.4gl This file includes common functions related to form transitions and states.
libdbappSQL.4gl This file includes common functions related to SQL transactions, errors, and database statements.
libdbappUI.4gl This file includes common functions related to the user interface such as Topmenus, Toolbars, and front-end type.
libdbappReportCore.4gl This file includes common functions for managing reports.
libdbappReportUI.4gl This file includes common functions related to report transitions and states.
libdbappWSCore.4gl This file includes common functions for managing Web services and HTTP errors.
libdbappWS.4gl This file includes common functions for managing Web services HTTP requests and responses.
libdbappWSCIient.4gl This file includes common functions for managing URL access to the Web service server.
libdbappPrintSettings.4fd This form can be used for setting print settings.
libdbappFieldselectiondialog.4fd This form can be used for selecting fields to print.

DlgCtrlInstruction_Type

The libdbapp package defines the libdbappEvents.DlgCtrlInstruction_Type:
PUBLIC TYPE DlgCtrlInstruction_Type SMALLINT 
This type defines the DIALOG control instruction used in code events.

Transition_Type

The libdbapp package defines the libdbappFormUI.Transition_Type.
PUBLIC TYPE Transition_Type
  RECORD
    onOk SMALLINT,
    onCancel SMALLINT,
    onClose SMALLINT,
    onExit SMALLINT
  END RECORD
This type defines a record for the transitions defined on a form. It is used in custom form code events.

UISettings_Type

The libdbapp package defines the libdbappFormUI.UISettings_Type.
PUBLIC TYPE UISettings_Type
  RECORD
    openMode SMALLINT,
    defaultMode SMALLINT,
    disableDisplay BOOLEAN,
    disableAdd BOOLEAN,
    disableModify BOOLEAN,
    disableDelete BOOLEAN,
    disableSearch BOOLEAN,
    disableEmpty BOOLEAN,
    transitions DYNAMIC ARRAY OF Transition_Type
  END RECORD
This type defines a record for the UI settings defined on a form. It is used in custom form code events.