User Tools

Site Tools


tplcontrolsavebutton.htm
Navigation:  Templates > Guide to all Templates > Control Templates >====== Save Button control template ====== Previous pageReturn to chapter overviewNext page

The SaveButton template provides an OK button for your window, plus the capability to display an action message for the end user. The SaveButton handles most of the file I/O for the procedure.

The SaveButton template provides the following prompts:

Allow

Check any combination of the three boxes to specify permitted file I/O operations. Conversely, clear the box to prevent the associated operation.

Inserts Generates code to handle record inserts.
Changes Generates code to handle record changes.
Deletes Generates code to handle record deletes.

TipBox.jpg

The SaveButton template does not detect changes to BLOBs; therefore, if only the BLOB changes, the SaveButton template does not save it.

Field Priming on Insert

Field Priming lets you provide a default value for fields in a new record. This value supersedes any initial value specified in the data dictionary. You can select a field and set an initial value in the Field Priming dialog.

Messages and Titles

Press this button to open the Messages and Titles dialog to specify update messages and their locations. In addition, this dialog controls some fundamental behavior associated with the procedure, such as whether it confirms before canceling and whether it allows repetitive adds.

View Message

Specifies the text for the action message when the procedure is called to view a record.

Insert Message

Specifies the text for the action message when the procedure is called to add a record.

Change Message

Specifies the text for the action message when the procedure is called to change a record.

Delete Message

Speci

tplcontrolsavebutton.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1