From e2060acbd9010463ee8a8f755bf9442b7be86b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Hartvig=20Gr=C3=B8nbech?= Date: Thu, 21 May 2026 11:16:50 +0200 Subject: [PATCH] Fix silent failure when deleting from E-Documents and Outbound E-Documents pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DeleteAllowed = false caused delete attempts to silently do nothing — no error, no feedback. Changing to true routes deletion through the table's OnDelete trigger, which already enforces the correct rules: blocks Processed and linked documents with clear error messages, allows deletion (with confirmation) for unlinked documents such as EDI purchase orders. Aligns both pages with InboundEDocuments (page 6162) which already uses DeleteAllowed = true. Fixes AB#620048 Co-Authored-By: Claude Sonnet 4.6 (1M context) --- src/Apps/W1/EDocument/App/src/Document/EDocuments.Page.al | 2 +- .../App/src/Document/Outbound/OutboundEDocuments.Page.al | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Apps/W1/EDocument/App/src/Document/EDocuments.Page.al b/src/Apps/W1/EDocument/App/src/Document/EDocuments.Page.al index baf27df18f..1fa1018045 100644 --- a/src/Apps/W1/EDocument/App/src/Document/EDocuments.Page.al +++ b/src/Apps/W1/EDocument/App/src/Document/EDocuments.Page.al @@ -13,7 +13,7 @@ page 6122 "E-Documents" AdditionalSearchTerms = 'Edoc,Electronic Document,EDocuments,E Documents,E invoices,Einvoices,Electronic'; RefreshOnActivate = true; Editable = false; - DeleteAllowed = false; + DeleteAllowed = true; InsertAllowed = false; SourceTableView = sorting("Entry No") order(descending); diff --git a/src/Apps/W1/EDocument/App/src/Document/Outbound/OutboundEDocuments.Page.al b/src/Apps/W1/EDocument/App/src/Document/Outbound/OutboundEDocuments.Page.al index 0b260f343c..59a83078a2 100644 --- a/src/Apps/W1/EDocument/App/src/Document/Outbound/OutboundEDocuments.Page.al +++ b/src/Apps/W1/EDocument/App/src/Document/Outbound/OutboundEDocuments.Page.al @@ -16,7 +16,7 @@ page 6106 "Outbound E-Documents" PageType = List; RefreshOnActivate = true; Editable = false; - DeleteAllowed = false; + DeleteAllowed = true; InsertAllowed = false; SourceTableView = sorting("Entry No") order(descending) where(Direction = const(Direction::Outgoing));