Skip to content

Commit

Permalink
[24.0] When controlling field visibility, use variable instead of fie…
Browse files Browse the repository at this point in the history
…ld to avoid client error (#655)

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Backport of  #635

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#502379](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/502379)
  • Loading branch information
JesperSchulz authored Feb 28, 2024
1 parent a7c1fa8 commit a654794
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand Down Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit a654794

Please sign in to comment.