We had code which filtered the G/L Entries by dimension and applied a filtergroup to this, example below.
GLEntry.Reset(); GLEntry.SetCurrentKey("Posting Date", "G/L Account No.", "Dimension Set ID"); GLEntry.FilterGroup(100); GLEntry.SetFilter("G/L Account No.", GLAccountFilter); GLEntry.SetFilter("Dimension Set ID", DimensionSetIDFilter); Page.Run(Page::"General Ledger Entries", GLEntry);
However, we noticed that users can simply press the "All" button and this will remove all the filters at it essentially reopens the page. We cannot add this restriction to the OnOpenPage.
What is the new method now to ensure users cannot remove filtergroup permissions?