StdFormDelete event

Occurs when the user clicks Delete on the Actions menu.

The default implementation handles new objects (that is, objects that have not been saved to a SQL Server table) and saved objects differently. WinStudio removes a new object from the collection immediately. WinStudio marks a saved object as deleted. The marked object will be deleted from the database table when a Save operation is performed.

The default implementation in forms without custom event handlers generate these sequences of standard events:

For a saved object:  

  • StdFormDelete
  • StdFormGetBoundValues
  • StdObjectDelete
  • StdObjectDeleteExisting
  • StdObjectDeleteExistingCompleted
  • StdObjectDeleteCompleted
  • StdFormDeleteCompleted

For a new object:

  • StdFormDelete
  • StdFormGetBoundValues
  • StdObjectDelete
  • StdObjectDeleteNew
  • StdObjectSelectCurrent
  • StdObjectSelectCurrentCompleted
  • StdObjectDeleteNewCompleted
  • StdObjectDeleteCompleted
  • StdFormLoadBoundValues
  • StdFormLoadDerivedValues
  • StdFormDeleteCompleted

Your application can call the default implementation by generating the event.

Remarks

The default implementation is a form-level operation. If the Delete operation is performed on an object that has been marked as deleted, Windows client removes the mark and the object is not be deleted when a Save operation is performed.

A StdObjectDelete event and a StdObjectDeleteExisting or a StdObjectDeleteNew event is fired before each deletion.