TASK_DELETE ()
TASK_DELETE(task_reference)
API Version | 2.8.1 and higher |
---|
Deletes a TASK
The action executed by this FORMULA depends on the type of TASK and its current status:
The TASK must be in the current ADMISSION.
If
task_reference
refers to a TASK that is closed, this function will do nothing. Closed TASKS can’t be deleted.
Input Parameters
Parameter | Type | Default | Description |
|
| Reference to a TASK OBJECT. Accepted values:
The TASK reference or TASK_CODE is searched only in the current ADMISSION (the one where the formula is executed). |
Return value
This function does not return a value
Execution
On closing the form. The ITEM containing this FORMULA must be defined as type 'ACTION' (which are always executed when a FORM is closed)
Examples
Formula | Description |
---|---|
| Deletes the TASK with reference 12322 |
| Deletes all open TASKs of the current ADMISSION whose TASK_CODE is "MANEUVER:BAS" |
| Deletes all open TASKs in the current ADMISSION whose TASK_CODE is "MANEUVER:BAS" (see OBJECT CODES) |