Skip to content

Commit

Permalink
Add Refresh Allowed Tables action to Retention Policy list page (#1844)
Browse files Browse the repository at this point in the history
#### Summary

Currently this action is only on the card page which is not user
friendly. Copy the action to list page too.

#### 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#542890](https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_workitems/edit/542890)
  • Loading branch information
onbuyuka authored Aug 21, 2024
1 parent 083aa98 commit 137f372
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ page 3901 "Retention Policy Setup Card"
}
action(RestoreAllowedTables)
{
Caption = 'Refresh allowed tables';
Caption = 'Refresh Allowed Tables';
ApplicationArea = All;
Image = Refresh;
ToolTip = 'Refreshes the list of tables that can be selected.';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,23 @@ page 3903 "Retention Policy Setup List"
ApplyRetentionPolicy.ApplyRetentionPolicy(true);
end;
}
action(RestoreAllowedTables)
{
Caption = 'Refresh Allowed Tables';
ApplicationArea = All;
Promoted = true;
PromotedOnly = true;
PromotedCategory = Process;
Image = Refresh;
ToolTip = 'Refreshes the list of tables that can be selected.';

trigger OnAction()
var
RetenPolAllowedTables: Codeunit "Reten. Pol. Allowed Tables";
begin
RetenPolAllowedTables.OnRefreshAllowedTables();
end;
}
}
}

Expand All @@ -140,4 +157,4 @@ page 3903 "Retention Policy Setup List"
begin
FeatureTelemetry.LogUptake('0000FW0', 'Retention policies', Enum::"Feature Uptake Status"::Discovered);
end;
}
}

0 comments on commit 137f372

Please sign in to comment.