Page 9993 Code Coverage AL Object

App
Base Application
Namespace
System.TestTools.CodeCoverage
Versions
17-28
Source table
2000000038

Versions171819202122232425262728

Source29

Source in 29

src/Layers/W1/BaseApp/Modules/System/DevTools/CodeCoverage/CodeCoverageALObject.Page.al83 lines, Copyright (c) Microsoft Corporation. MIT

namespace System.TestTools.CodeCoverage;

using System.Reflection;

page 9993 "Code Coverage AL Object"
{
    Caption = 'Objects';
    Editable = false;
    PageType = List;
    SourceTable = AllObj;
    SourceTableView = where("Object Type" = filter(<> TableData));

    layout
    {
        area(content)
        {
            repeater(Group)
            {
                Caption = 'Group';
                field(Type; Rec."Object Type")
                {
                    ApplicationArea = All;
                    Caption = 'Type';
                    ToolTip = 'Specifies the type: for example, table, page, or query.';
                }
                field(ID; Rec."Object ID")
                {
                    ApplicationArea = All;
                    Caption = 'ID';
                    ToolTip = 'Specifies the object ID.';
                }
                field(Name; Rec."Object Name")
                {
                    ApplicationArea = All;
                    Caption = 'Name';
                    ToolTip = 'Specifies the name of the object associated with the code coverage.';
                }
                field("App Package ID"; Rec."App Package ID")
                {
                    ApplicationArea = All;
                    Caption = 'App Package ID';
                    ToolTip = 'Specifies the GUID of the app from which the object originated.';
                }
            }
        }
    }

    actions
    {
        area(processing)
        {
            action(Load)
            {
                ApplicationArea = All;
                Caption = 'Load';
                Image = AddContacts;
                ToolTip = 'Force the code coverage recorder to include the filtered objects.';

                trigger OnAction()
                var
                    AllObj: Record AllObj;
                    CodeCoverageMgt: Codeunit "Code Coverage Mgt.";
                begin
                    AllObj.CopyFilters(Rec);
                    CodeCoverageMgt.Include(AllObj);
                end;
            }
        }
        area(Promoted)
        {
            group(Category_Process)
            {
                Caption = 'Process';

                actionref(Load_Promoted; Load)
                {
                }
            }
        }
    }
}