Description: Determines the current DBForm caption when the form is initialized or refreshed.
Execution: The formula can run during initialization before a record is loaded, and later when the DBForm user interface is refreshed.
Arguments and variables:
Argument_DataID: identifier of the current record; it can be -1 during initialization.
The current DBForm entry values are also available directly by their entry names.
Result: The value is converted to text and stored in the global $CurDBFormCaption parameter. When Result is Null, the configured default DBForm caption is used.
Availability: DBForm on desktop and web.
Example:
if Argument_DataID = -1 then
Result := "New record"
else
Result := "Record " + Argument_DataID;