PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Use conditions
  • Deletion in a browsing Table or TreeView Table control
  • Referential integrity and browsing Table or TreeView Table control
  • Deletion in a browsing Table control and Trigger
  • Managing the errors
  • Locking the linked data file
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Deletes the selected rows from a Table or Treeview Table control.
Versions 19 and later
WEBDEV - Browser code This function is now available in Browser code for the Browser Table controls.
New in version 19
WEBDEV - Browser code This function is now available in Browser code for the Browser Table controls.
WEBDEV - Browser code This function is now available in Browser code for the Browser Table controls.
Example
// Deletes all selected rows
IF YesNo("Do you really want to delete the selected customers?") THEN
TableDeleteSelect(TABLE_Customer_Display)
END
Syntax
TableDeleteSelect(<Table Control>)
<Table Control>: Control name
Name of control to use. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
Remarks

Use conditions

TableDeleteSelect can be used on:
  • a browsing or memory control.
  • a single-selection or multi-selection control.
    WEBDEV - Server codePHP Reminder: The multi-selection controls are available in Ajax only. WEBDEV - Server codePHP Reminder: The multi-selection is not available for the Classic Table controls.
WEBDEV - Server codePHP This function is available for the Ajax Table controls, the Classic Table controls and the TreeView Table controls.
WEBDEV - Browser code This function is available for the browser Table controls only. The TreeView Table control is not available.

Deletion in a browsing Table or TreeView Table control

TableDeleteSelect deletes the corresponding records from the data file associated with the control. If items are linked to other data files, no modification is automatically performed on these linked data files.

Referential integrity and browsing Table or TreeView Table control

If the management of referential integrity is enabled (HSetIntegrity), HErrorIntegrity must be called after TableDeleteSelect to check the integrity. If an integrity error is detected, the row is not deleted and it remains visible in the control.

Deletion in a browsing Table control and Trigger

You have the ability to activate a trigger when deleting a record from a browsing Table control. See the documentation about HDescribeTrigger for more details.

Managing the errors

The ErrorOccurred variable is set to True if the deletion fails. To find out the error details, use ErrorInfo.

Locking the linked data file

If the data file is locked in the current process, TableDeleteSelect deletes the specified row and unlocks the data file.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
WEBDEV - Browser code WDJS.DLL
Linux wd230obj.so
Minimum required version
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment