Development > Utilities > Miscellaneous > Deletions 

In most of the objects in the software, it is possible to delete the current record by pressing the button .

This deletion is of course possible only if the "referential integrity" constraints as defined in the data dictionary, are adhered to, depending on the situation. These controls can take a relatively long time to perform, and they are carried out immediately, on-line when the delete function is called.

Obviously, if several deletions are to be performed, it would be very time consuming to run them one at a time. It is for this reason that the deferred deletions function is preferred for multiple deletions. The deferred deletion loads a database table, which store all the current deletion requests.

The Deletion function is used on one hand to view and modify these requests, and on the other to start the deletion of the queue of requests waiting to be processed.

Screen management

Entry screen

Presentation

When using the function, a grid is displayed containing the current deletion requests in the form of the object code and the values of the keys.

It should be noted that when the key for the record managed by the object has a single part, only the first column is entered ; However, if there are two parts to the key, the first part is located in the second Identifier column, and the second part (which in general is the most meaningful) in the first.

The following possibilities are then available :

  • enter new deletion requests, or delete them, via direct entry in the screen
  • start the actual deletion with the button.
  • exit the function by canceling the modification and not triggering the deletion operation at this time.

At the end of execution the deletion operation creates a log file giving the results of the operation.

Close

 

Fields

The following fields are present on this tab :

Grid

This code identifies the object that manages the record that must be deleted.

  • Description (field INTIT)

 

  • Identifier 1 (field CLE1)

Defines the key (if necessary composed of several parts) identifying the record whose deletion has been requested.

  • Identifier 2 (field CLE2)

 

  • Description (field DES)

Enter the description of the relevant record.

This long description is used as a title in screens and reports.

 

  • Date (field CREDAT)

 

  • Time (field CRETIM)

 

Close

 

Batch task

This function can be run in batch mode. The standard task ADELETE is provided for that purpose.

Error messages

The only error messages are the generic ones.

Tables used

SEEREFERTTO Refer to documentation Implementation