From b1d570306e77eb3393920820e71f2a0ae7bdc7aa Mon Sep 17 00:00:00 2001 From: Marta-Vladyslava Baranovych Date: Tue, 19 May 2026 13:38:49 +0000 Subject: [PATCH] Control fields visibility in lookup mode --- .../App/Agent/Setup/AgentModelList.Page.al | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/System Application/App/Agent/Setup/AgentModelList.Page.al b/src/System Application/App/Agent/Setup/AgentModelList.Page.al index 75281bbaa3..a04a61cb67 100644 --- a/src/System Application/App/Agent/Setup/AgentModelList.Page.al +++ b/src/System Application/App/Agent/Setup/AgentModelList.Page.al @@ -42,6 +42,7 @@ page 4319 "Agent Model List" ApplicationArea = All; Caption = 'Is Default'; ToolTip = 'Specifies whether this is the default agent model.'; + Visible = not IsLookupMode; } field(Availability; Rec.Availability) { @@ -54,8 +55,17 @@ page 4319 "Agent Model List" ApplicationArea = All; Caption = 'Retirement Date'; ToolTip = 'Specifies the date when the agent model will be retired.'; + Visible = not IsLookupMode; } } } } + + trigger OnOpenPage() + begin + IsLookupMode := CurrPage.LookupMode(); + end; + + var + IsLookupMode: Boolean; }