Description: Runs while a DBForm is being opened, before its requested record is loaded.
Execution: The formula runs after the DBForm structure has been initialized but before the normal record-loading step. Use it for form setup that does not depend on loaded record data.
Arguments and variables:
Argument_DataID: the DBForm's current identifier at this early stage. It is -1 on the desktop and in the web dialog path. The web frame path assigns the requested DataID before calling the event, so code must not assume one uniform value across platforms.
Entry variables may contain initialized values, but they do not yet represent the requested record's fully loaded data.
Result: Any value assigned to Result has no effect.
Availability: DBForm on desktop and web.
Example:
// Perform record-independent form setup.
SetDBFormComponentCaptionByName("EditStatus", "Status");