Page 9848 User Security Groups Part

System Application, System.Security.AccessControl

src/System Application/App/Security Groups/src/UserSecurityGroupsPart.Page.al80 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace System.Security.AccessControl;page 9848 "User Security Groups Part"{    Caption = 'Security Groups';    PageType = ListPart;    PopulateAllFields = true;    SourceTable = "Security Group Member Buffer";    Editable = false;    layout    {        area(content)        {            repeater(Group)            {                field(SecurityGroupCode; Rec."Security Group Code")                {                    ApplicationArea = Basic, Suite;                    Caption = 'Code';                    ToolTip = 'Specifies the security group code.';                    trigger OnDrillDown()                    var                        TempSecurityGroupBuffer: Record "Security Group Buffer";                        SecurityGroups: Page "Security Groups";                    begin                        TempSecurityGroupBuffer.SetRange(Code, Rec."Security Group Code");                        SecurityGroups.SetTableView(TempSecurityGroupBuffer);                        SecurityGroups.Run();                    end;                }                field("Security Group Name"; Rec."Security Group Name")                {                    ApplicationArea = Basic, Suite;                    Caption = 'Name';                    ToolTip = 'Specifies the name of the security group.';                }            }        }    }    trigger OnOpenPage()    var        SecurityGroup: Codeunit "Security Group";    begin        if not IsInitializedByCaller then            SecurityGroup.GetMembers(Rec);    end;    [Scope('OnPrem')]    procedure Refresh(var SecurityGroupMemberBuffer: Record "Security Group Member Buffer")    begin        Rec.Copy(SecurityGroupMemberBuffer, true);        CurrPage.Update(false);    end;    [Scope('OnPrem')]    procedure GetSourceRecord(var SecurityGroupMemberBuffer: Record "Security Group Member Buffer")    begin        IsInitializedByCaller := true;        SecurityGroupMemberBuffer.Copy(Rec, true);    end;    [Scope('OnPrem')]    procedure SetInitializedByCaller()    begin        IsInitializedByCaller := true;    end;    var        IsInitializedByCaller: Boolean;}