Skip to main content

Delete Record with Confirmation Logic

Goal: UX/Functional

Developer: Takacs Peter, Design: Norbert Bede PR Review: Carlos Ruiz.

Sponsor: cloudempiere.com

Feature Ticket: IDEMPIERE-5319

Description

The goal of this improvement is to implement new parametrisable Delete Confirmation Logic, which defines what string must be entered before the system starts the delete record operation. The implementation covers multi-language environment and singe/many record deletion.

There are 2 levels of implementation

  • Application Dictionary - system administrator able to add on Window=>Tab a new Delete Confirmation Logic

  • Window Customisation - tenant administrator able to add on Window Customisation =>Tab a new Delete Confirmation Logic

Validation syntax follow iDempiere convention, example

  • ConfirmDeleteLogic = @#Date@
  • ConfirmDeleteLogic = @Value@
  • ConfirmDeleteLogic = @Delete@ - Dialog will ask for "Borrar Registro".

Behaviour:

  • System first check Window customisation Delete Confirmation Logic, if NULL then check Window Validation if NULL then legacy delete dialog opening
  • When single record is active or selected, Validation is defined, then iDempiere will ask for Delete Confirmation Logic question eg. For delete record enter: Mulch
  • When multiple record are selected, Validation is defined, then iDempiere will ask for generic message : for delete enter - "Delete Selected Records".

Examples

Single Record ask for Value

Deleteconfirm logic value Deleteconfirm logic value invalidanswer

Single Record ask Date

Deleteconfirm logic date Deleteconfirm logic date input

Multiple Records selection

Deleteconfirm mulitple records

Window Customisation

Deleteconfirm logic windowcustomisation

Translation: Spain Translation of Delete

Deleteconfirm logic translation


Source: Wiki