Implement the form and program
Implement the form and program on the Business Application diagram.
-
Go to Project > src > Applicationflow and open the appflow.4ba file.
This is your Business Application (BA) diagram, which shows the flow of your program. It includes one program entity (Main) and one CRUD form entity (form).
- Right-click on the Form entity and select Implement CRUD Form from Database to generate a form for the database table that you wish to access.
-
Select the officestore database and the
account table. Select the first ten fields and use the
single right arrow to add these fields to the Selected
Fields list.
-
Click Finish to accept the defaults from the rest of the
wizard prompts.
By default, the form is organized in a Grid layout with two columns.
-
Save the form as accounts.4fdm in the
$ProjectDir/src directory and
insert it in the project under the Entities node.
- Right-click the Main program entity and select Implement Program.
-
Using Save As, save the program file as Main.4prg in
the $ProjectDir/src directory, and insert it in the project
under the Main_prg node. This file is used to generate the source code for
the main function. Click OK to close the Save As dialog.
- Select File > Save all.