From 1f8a96f5218b9a0b42dcf3eaefe8f00f4c9a347f Mon Sep 17 00:00:00 2001 From: Jesper Schulz-Wedde Date: Mon, 26 Feb 2024 12:47:51 +0100 Subject: [PATCH] Use variable instead of field to avoid client error. --- .../Retention Policy Setup/RetentionPolicySetupCard.Page.al | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/System Application/App/Retention Policy/src/Retention Policy Setup/RetentionPolicySetupCard.Page.al b/src/System Application/App/Retention Policy/src/Retention Policy Setup/RetentionPolicySetupCard.Page.al index 3f13e405a7..516ccf0364 100644 --- a/src/System Application/App/Retention Policy/src/Retention Policy Setup/RetentionPolicySetupCard.Page.al +++ b/src/System Application/App/Retention Policy/src/Retention Policy Setup/RetentionPolicySetupCard.Page.al @@ -86,7 +86,7 @@ page 3901 "Retention Policy Setup Card" ToolTip = 'Specifies the number of expired records.'; Editable = false; StyleExpr = ExpiredRecordCountStyleTxt; - Visible = Rec."Apply to all records"; + Visible = not ShowExpiredRecordExpirationDate; } field("Records To Delete"; ExpiredRecordCount) { @@ -95,7 +95,7 @@ page 3901 "Retention Policy Setup Card" ToolTip = 'Specifies the number of expired records the retention policy will delete the next time it runs.'; Editable = false; StyleExpr = ExpiredRecordCountStyleTxt; - Visible = not Rec."Apply to all records"; + Visible = ShowExpiredRecordExpirationDate; } field("Expired Record Expiration Date"; ExpiredRecordExpirationDate) { @@ -132,7 +132,7 @@ page 3901 "Retention Policy Setup Card" ApplicationArea = All; Caption = 'Record Retention Policy', Comment = 'Record as in ''a record in a table''.'; SubPageLink = "Table ID" = field("Table Id"); - Visible = not Rec."Apply to all records"; + Visible = ShowExpiredRecordExpirationDate; } } }