Generated and Intermediate Files

Applications built with the Business Application Modeler generate a variety of files. Some of these files are shown in the Intermediate Files folders in the project. Generated applications include project files, generated intermediary files, resource files, and compiled binary files.

Figure 1. Intermediate Files

Generated 4gl files are compiled and linked with the other program files to create the executable application. They are listed in the project in an Intermediate Files folder. POINT and BLOCK sections allow you to add code to the files. The compiled versions are stored in the project's /bin directory.

Table 1. Generated files
File Description Generated for
Program.4gl
  • Contains the MAIN function
  • Defines global variables
  • Contains the CONNECT TO BDL statement
  • Loads the styles and action defaults files
  • Performs some initialization tasks for the application
Program (4prg)
Program.xml Contains the database, property, and relationship information about the program needed to generate the logic in the 4gl files. Program (4prg)
Form_ui.4gl
  • Launches the module called from MAIN, based on the open mode
  • Opens the application form
  • Loads the Toolbar and TopMenu
  • Launches the application state manager function
  • Launches the functions containing the Menu or Dialog statements for the various states
  • Calls functions in the Form_uidalog.4gl to retrieve and manage subdialogs
CRUD Form (4fdm)

Zoom Form (4fdz)

CRUD Form and Webservice (4fdmws)

Form_uidialog.4gl
  • Defines the subdialog module variables
  • Defines the subdialogs
  • Defines functions managing the states of actions, fields and subdialogs
  • Calls functions in the Form_uidialogdata.4gl
CRUD Form (4fdm)

Zoom Form (4fdz)

CRUD Form and Webservice (4fdmws)

Zoom Form and Webservice (4fdzsws)

Form_uidialogdata.4gl
  • Defines the data module variables
  • Defines functions managing UI data (clear, fetch, set default values)
  • Calls functions in the Form_uidata.4gl to retrieve and manage the database data
CRUD Form (4fdm)

Zoom Form (4fdz)

CRUD Form and Webservice (4fdmws)

Zoom Form and Webservice (4fdzsws)

Form_uidata.4gl
  • Defines the records for the database columns and tables
  • Creates and fills a dynamic row of data
  • Creates and fills a dynamic row of record keys
  • Contains the SQL statements to select, update, and delete rows in the database
  • Handles the SQL transactions
CRUD Form (4fdm)

Zoom Form (4fdz)

CRUD Form and Webservice (4fdmws)

Zoom Form and Webservice (4fdzsws)

Form.xml Contains the database, property, and relationship information about the form needed to generate the logic in the 4gl files. CRUD Form (4fdm)

Zoom Form (4fdz)

CRUD Form and Webservice (4fdmws)

Zoom Form and Webservice (4fdzsws)

WebService_service.4gl
  • Handles business record type definition (only take public fields)
  • Defines the modules variables (input and output variable for service's CRUD operations)
  • Sets up the service and publishes the CRUD operations
Web Service (4ws)

CRUD Form and Webservice (4fdmws)

Zoom Form and Webservice (4fdzsws)

WebService_uidata.4gl
  • Handles business record type definition
  • Contains operations to insert / update / delete rows in the database
  • Contains ascending lookup management
Web Service (4ws)

CRUD Form and Webservice (4fdmws)

Zoom Form and Webservice (4fdzsws)

WebService.xml The xml file contains the information about the web service needed to generate the logic in the 4gl files. Web Service (4ws)

CRUD Form and Webservice (4fdmws)

Zoom Form and Webservice (4fdzsws)

WebServiceServer_server.4gl
  • Contains the MAIN function
  • Sets up the web service engine
  • Contains the CONNECT TO BDL statement
  • Registers services
  • Listens for incoming requests
Webservice Server (4wsprg)
WebServiceServer.xml The WebServiceServer.xml file contains the information about the Webservice Server needed to generate the logic in the 4gl files. Webservice Server (4wsprg)
Report_report.4gl Contains the report driver for the report. Report (4rd)
Report_reportdata.4gl Contains the SQL and BDL statements to fetch the report data. Report (4rd)
Report.xml Contains the database, property, and relationship information about the report needed to generate the logic in the 4gl files. Report (4rd)
reportdata_report.rdd A data file is generated for use when the developer creates the report definition file (4rp). Report (4rd)