Page 9061 Plan Configuration List, source in 28
Source242526272829metadata in 28
src/System Application/App/Azure AD Plan/src/Plan Configuration/PlanConfigurationList.Page.al170 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.Azure.Identity;
using System.Environment;
/// <summary>
/// List page to show all available plan configurations.
/// </summary>
page 9061 "Plan Configuration List"
{
ApplicationArea = All;
Caption = 'License Configuration';
PageType = List;
SourceTable = "Plan Configuration";
UsageCategory = Administration;
Extensible = true;
Permissions = tabledata "Plan Configuration" = rimd;
ContextSensitiveHelpPage = 'ui-how-users-permissions#licensespermissions';
InsertAllowed = false;
ModifyAllowed = false;
AboutTitle = 'About license configuration';
AboutText = 'License configuration allows you to set up the default permissions that new users will get when accessing the system.';
layout
{
area(Content)
{
repeater(Group)
{
field("Plan Name"; Rec."Plan Name")
{
ApplicationArea = All;
Caption = 'License';
ToolTip = 'Specifies the name of the license.';
Editable = Rec."Plan Name" = '';
trigger OnDrillDown()
begin
Page.Run(Page::"Plan Configuration Card", Rec);
end;
}
field(Customized; Rec.Customized)
{
ApplicationArea = All;
Editable = false;
Caption = 'Permissions Customized';
ToolTip = 'Specifies if the permissions are customized.';
}
}
}
}
actions
{
area(Promoted)
{
actionref(New_Promoted; New)
{
}
actionref(Configure_Promoted; Configure)
{
}
group(Navigate)
{
actionref(BCAdminCenter_Promoted; BCAdminCenter)
{
}
actionref(M365AdminCenter_Promoted; M365AdminCenter)
{
}
}
}
area(Creation)
{
action(New)
{
ApplicationArea = All;
Caption = 'Add License Configuration';
Image = Add;
ToolTip = 'Add a configuration for a license.';
trigger OnAction()
var
PlanConfigurationImpl: Codeunit "Plan Configuration Impl.";
begin
PlanConfigurationImpl.AddLicenseEntry();
end;
}
}
area(Processing)
{
action(Configure)
{
ApplicationArea = All;
Caption = 'Configure';
Image = Setup;
RunObject = page "Plan Configuration Card";
RunPageLink = "Plan ID" = field("Plan ID");
Scope = Repeater;
ToolTip = 'Customize license permissions.';
}
}
area(Navigation)
{
action(BCAdminCenter)
{
ApplicationArea = All;
Caption = 'Business Central admin center', Locked = true;
Image = Setup;
ToolTip = 'Manage security groups and license-related features for each environment.';
Visible = IsSaaS;
trigger OnAction()
var
PlanConfigurationImpl: Codeunit "Plan Configuration Impl.";
begin
PlanConfigurationImpl.OpenBCAdminCenter();
end;
}
action(M365AdminCenter)
{
ApplicationArea = All;
Caption = 'Microsoft 365 admin center', Locked = true;
Image = Setup;
ToolTip = 'Assign licenses to existing users or create new users.';
trigger OnAction()
var
PlanConfigurationImpl: Codeunit "Plan Configuration Impl.";
begin
PlanConfigurationImpl.OpenM365AdminCenter();
end;
}
}
}
trigger OnOpenPage()
var
PlanConfiguration: Record "Plan Configuration";
PlanConfigurationImpl: Codeunit "Plan Configuration Impl.";
begin
PlanConfiguration.SetRange(Customized, false);
if not PlanConfiguration.IsEmpty() then
PlanConfigurationImpl.ShowDefaultConfigurationNotification();
end;
trigger OnInit()
var
EnvironmentInformation: Codeunit "Environment Information";
begin
IsSaaS := EnvironmentInformation.IsSaaS();
end;
var
IsSaaS: Boolean;
}