Generating applications with the default template / Implementing programs and forms |
Generated applications have default actions, which are triggered when the user clicks on an action view on the form (such as a Toolbar icon). The actions are enabled appropriately as the BDL interactive statements in the generated application are executed.
Figure 1. Default actions
Action Text | Action Name | Description |
---|---|---|
New | new | Adds a new record in the master, whether or not the focus is in the master or a detail. |
Insert | insert | Appends a new record at the end of the list of the currently selected table - either master or detail. |
Append | append | Adds a new record at the location of the current selection - either in a master or a detail. The append and new actions are equivalent if the focus is in the master. |
Modify | modify | Update a record. |
Search | query | Search the database table; enter criteria in the relevant fields and click Accept; or click Accept on an empty form to retrieve all the records in the database table. |
Delete | delete | Delete a database record. |
Zoom | zoom | Activate the zoom form. |
First | firstrow | Navigate to the first record. |
Last | lastrow | Navigate to the last record. |
Next | nextrow | Navigate to the next record. |
Previous | prevrow | Navigate to the previous record. |
If a Report entity is implemented in the BA diagram, additional actions are enabled for the user. Which actions appear is controlled by the Report Options properties of the Form entity.
Figure 2. Default Toolbar with Report options
Action Text | Action Name | Description |
---|---|---|
reportprint | Print a defined report. | |
Preview | reportpreview | Preview a defined report. |
Print... | reportsetup | Select report and printer or export settings in Report Print Settings window. If no report design template (4rp) is available for the report, the Select Fields button is enabled to select fields for the report. |
reportexportpdf | Export report to PDF format. | |
HTML | reportextporthtml | Export report to HTML format. |
XLS | reportexportxls | Export report to XLS (Excel) format. |
RTF | reportexportrtf | Export report to RTF (MS-Word) format. |