Page 5196 Task Interaction Languages

Base Application, Microsoft.CRM.Task

src/Layers/W1/BaseApp/CRM/Task/TaskInteractionLanguages.Page.al169 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.CRM.Task;page 5196 "Task Interaction Languages"{    Caption = 'Task Interaction Languages';    PageType = List;    SourceTable = "To-do Interaction Language";    layout    {        area(content)        {            repeater(Control1)            {                ShowCaption = false;                field("Language Code"; Rec."Language Code")                {                    ApplicationArea = Basic, Suite;                }                field(Description; Rec.Description)                {                    ApplicationArea = Basic, Suite;                }#pragma warning disable AA0100                field("""Attachment No."" > 0"; Rec."Attachment No." > 0)#pragma warning restore AA0100                {                    ApplicationArea = Basic, Suite;                    AssistEdit = true;                    Caption = 'Attachment';                    ToolTip = 'Specifies if the linked attachment is inherited or unique.';                    trigger OnAssistEdit()                    begin                        if Rec."Attachment No." = 0 then                            Rec.CreateAttachment((Rec."To-do No." = '') or Task.Closed)                        else                            Rec.OpenAttachment((Rec."To-do No." = '') or Task.Closed);                        CurrPage.Update();                    end;                }            }        }        area(factboxes)        {            systempart(Control1900383207; Links)            {                ApplicationArea = RecordLinks;                Visible = false;            }            systempart(Control1905767507; Notes)            {                ApplicationArea = Notes;                Visible = false;            }        }    }    actions    {        area(navigation)        {            group(Attachment)            {                Caption = '&Attachment';                Image = Attachments;                action(Open)                {                    ApplicationArea = Basic, Suite;                    Caption = 'Open';                    Image = Edit;                    ShortCutKey = 'Return';                    ToolTip = 'Open the card for the selected record.';                    trigger OnAction()                    begin                        Rec.OpenAttachment((Rec."To-do No." = '') or Task.Closed);                    end;                }                action(Create)                {                    ApplicationArea = Basic, Suite;                    Caption = 'Create';                    Ellipsis = true;                    Image = New;                    ToolTip = 'Create an attachment.';                    trigger OnAction()                    begin                        Rec.CreateAttachment((Rec."To-do No." = '') or Task.Closed);                    end;                }                action("Copy &from")                {                    ApplicationArea = Basic, Suite;                    Caption = 'Copy &from';                    Ellipsis = true;                    Image = Copy;                    ToolTip = 'Copy from an attachment.';                    trigger OnAction()                    begin                        Rec.CopyFromAttachment();                    end;                }                action(Import)                {                    ApplicationArea = Basic, Suite;                    Caption = 'Import';                    Ellipsis = true;                    Image = Import;                    ToolTip = 'Import an attachment.';                    trigger OnAction()                    begin                        Rec.ImportAttachment();                    end;                }                action("E&xport")                {                    ApplicationArea = Basic, Suite;                    Caption = 'E&xport';                    Ellipsis = true;                    Image = Export;                    ToolTip = 'Export an attachment.';                    trigger OnAction()                    begin                        Rec.ExportAttachment();                    end;                }                action(Remove)                {                    ApplicationArea = Basic, Suite;                    Caption = 'Remove';                    Ellipsis = true;                    Image = Cancel;                    ToolTip = 'Remove an attachment.';                    trigger OnAction()                    begin                        Rec.RemoveAttachment(true);                    end;                }            }        }    }    trigger OnFindRecord(Which: Text): Boolean    var        RecordsFound: Boolean;    begin        RecordsFound := Rec.Find(Which);        CurrPage.Editable := (Rec."To-do No." <> '');        if Task.Get(Rec."To-do No.") then            CurrPage.Editable := not Task.Closed;        exit(RecordsFound);    end;    var        Task: Record "To-do";}