Page 9198 Profile Import Result List, source in 29

Source29

src/Layers/W1/BaseApp/Modules/System/Profile/ProfileImportResultList.Page.al56 lines, Copyright (c) Microsoft Corporation. MIT

namespace System.Environment.Configuration;

using System.Apps;

page 9198 "Profile Import Result List"
{
    PageType = List;
    Caption = 'Detailed Results';
    SourceTable = "Profile Designer Diagnostic";
    SourceTableTemporary = true;
    Editable = false;

    layout
    {
        area(Content)
        {
            repeater(repeater)
            {
                field("Profile ID"; Rec."Profile ID")
                {
                    ApplicationArea = All;
                    ToolTip = 'Specifies an ID that is used to identify the profile (role). There can be more than one profile with the same ID if they come from different extensions.';
                }
                field(Severity; Rec.Severity)
                {
                    ApplicationArea = All;
                    width = 5;
                    ToolTip = 'Specifies the severity of this diagnostics message.';
                }
                field(Message; Rec.Message)
                {
                    ApplicationArea = All;
                    ToolTip = 'Specifies the diagnostics message from the compiler.';
                }
                field(ApplicationNameField; ApplicationName)
                {
                    Caption = 'Source';
                    Editable = false;
                    Visible = false; // Too much clutter to show by default but allow admin to show this if necessary to distinguish between profiles
                    ApplicationArea = All;
                    ToolTip = 'Specifies the origin of this profile, which can be either an extension, shown by its name, or a custom profile created by a user.';
                }
            }
        }
    }

    trigger OnAfterGetRecord()
    begin
        ApplicationName := ExtensionManagement.GetAppName(Rec."Profile App ID");
    end;

    var
        ExtensionManagement: Codeunit "Extension Management";
        ApplicationName: Text;
}