Table 97 Comment Line

Base Application, Microsoft.Foundation.Comment

src/Layers/W1/BaseApp/Modules/Foundation/Comments/CommentLine.Table.al94 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 Microsoft.Foundation.Comment;table 97 "Comment Line"{    Caption = 'Comment Line';    DrillDownPageID = "Comment List";    LookupPageID = "Comment List";    DataClassification = CustomerContent;    fields    {        field(1; "Table Name"; Enum "Comment Line Table Name")        {            Caption = 'Table Name';        }        field(2; "No."; Code[20])        {            Caption = 'No.';            ToolTip = 'Specifies the number of the involved entry or record, according to the specified number series.';        }        field(3; "Line No."; Integer)        {            Caption = 'Line No.';        }        field(4; Date; Date)        {            Caption = 'Date';            ToolTip = 'Specifies the date the comment was created.';        }        field(5; "Code"; Code[10])        {            Caption = 'Code';            ToolTip = 'Specifies a code for the comment.';        }        field(6; Comment; Text[80])        {            Caption = 'Comment';            ToolTip = 'Specifies the comment itself.';        }    }    keys    {        key(Key1; "Table Name", "No.", "Line No.")        {            Clustered = true;        }    }    fieldgroups    {    }    procedure SetUpNewLine()    var        CommentLine: Record "Comment Line";    begin        CommentLine.SetRange("Table Name", "Table Name");        CommentLine.SetRange("No.", "No.");        CommentLine.SetRange(Date, WorkDate());        if not CommentLine.FindFirst() then            Date := WorkDate();        OnAfterSetUpNewLine(Rec, CommentLine);    end;    procedure RenameCommentLine(TableName: Enum "Comment Line Table Name"; OldNo: Code[20]; NewNo: Code[20])    var        OldCommentLine: Record "Comment Line";        NewCommentLine: Record "Comment Line";    begin        OldCommentLine.SetRange("Table Name", TableName);        OldCommentLine.SetRange("No.", OldNo);        if OldCommentLine.FindSet() then begin            repeat                NewCommentLine := OldCommentLine;                NewCommentLine."No." := NewNo;                NewCommentLine.Insert();            until OldCommentLine.Next() = 0;            OldCommentLine.DeleteAll();        end;    end;    [IntegrationEvent(false, false)]    local procedure OnAfterSetUpNewLine(var CommentLineRec: Record "Comment Line"; var CommentLineFilter: Record "Comment Line")    begin    end;}