Description: Runs before a user selects and executes an object or DBGrid user script from the grid.
Execution: The event is a notification hook. After it finishes, the selected user script is executed normally. Its Result cannot cancel or replace that script.
Arguments:
Argument_ComponentObjectID: object identifier configured for the DBGrid.
Argument_ComponentFilterID: filter identifier configured for the DBGrid.
Argument_DataID: identifier of the focused record.
Argument_ScriptName: name of the user script about to run. This value is assigned on desktop. The web callback does not assign it, so it may be empty or retain an earlier value and must not be relied upon there.
Common arguments: The declared Argument_EventName, Argument_SenderName and Argument_SenderID values are not assigned consistently.
Result: Any value assigned to Result has no effect and does not block the selected user script.
Availability: DBForm DBGrid component on desktop and web, with the Argument_ScriptName limitation described above.
Example:
// Argument_ScriptName is reliable on desktop.
ShowMessage("Starting user script: " + Argument_ScriptName);