Page 9103 Pending Approval FactBox, source in 29

Source29

src/Layers/W1/BaseApp/System/Workflow/PendingApprovalFactBox.Page.al66 lines, Copyright (c) Microsoft Corporation. MIT

namespace System.Automation;

using System.Security.User;

page 9103 "Pending Approval FactBox"
{
    Caption = 'Pending Approval';
    PageType = CardPart;
    SourceTable = "Approval Entry";

    layout
    {
        area(content)
        {
            field("Sender ID"; Rec."Sender ID")
            {
                ApplicationArea = Suite;
                ToolTip = 'Specifies the ID of the user who sent the approval request for the document to be approved.';

                trigger OnDrillDown()
                var
                    UserMgt: Codeunit "User Management";
                begin
                    UserMgt.DisplayUserInformation(Rec."Sender ID");
                end;
            }
            field("Due Date"; Rec."Due Date")
            {
                ApplicationArea = Suite;
                ToolTip = 'Specifies when the record must be approved, by one or more approvers.';
            }
            field(Comment; ApprovalCommentLine.Comment)
            {
                ApplicationArea = Suite;
                Caption = 'Comment';
                ToolTip = 'Specifies a comment that applies to the approval entry.';

                trigger OnDrillDown()
                var
                    ApprovalComments: Page "Approval Comments";
                begin
                    ApprovalComments.SetTableView(ApprovalCommentLine);
                    ApprovalComments.SetWorkflowStepInstanceID(Rec."Workflow Step Instance ID");
                    ApprovalComments.RunModal();
                    CurrPage.Update();
                end;
            }
        }
    }

    actions
    {
    }

    trigger OnAfterGetRecord()
    begin
        ApprovalCommentLine.SetRange("Table ID", Rec."Table ID");
        ApprovalCommentLine.SetRange("Record ID to Approve", Rec."Record ID to Approve");
        if ApprovalCommentLine.FindLast() then;
    end;

    var
        ApprovalCommentLine: Record "Approval Comment Line";
}