Page 8 Standard Text Codes, source in 29

Source29

src/Layers/W1/BaseApp/Utilities/StandardTextCodes.Page.al86 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.Utilities;

using Microsoft.Foundation.ExtendedText;

page 8 "Standard Text Codes"
{
    ApplicationArea = Basic, Suite;
    Caption = 'Standard Text Codes';
    PageType = List;
    AboutTitle = 'About Standard Text Codes';
    AboutText = 'Maintain reusable codes and descriptions for standard text entries that can be quickly inserted into documents and communications throughout Business Central.';
    SourceTable = "Standard Text";
    UsageCategory = Administration;

    layout
    {
        area(content)
        {
            repeater(Control1)
            {
                ShowCaption = false;
                field("Code"; Rec.Code)
                {
                    ApplicationArea = Basic, Suite;
                }
                field(Description; Rec.Description)
                {
                    ApplicationArea = Basic, Suite;
                }
            }
        }
        area(factboxes)
        {
            systempart(Control1900383207; Links)
            {
                ApplicationArea = RecordLinks;
                Visible = false;
            }
            systempart(Control1905767507; Notes)
            {
                ApplicationArea = Notes;
                Visible = false;
            }
        }
    }

    actions
    {
        area(navigation)
        {
            group("Te&xt")
            {
                Caption = 'Te&xt';
                Image = Text;
                action("E&xtended Texts")
                {
                    ApplicationArea = Suite;
                    Caption = 'E&xtended Texts';
                    Image = Text;
                    RunObject = Page "Extended Text List";
                    RunPageLink = "Table Name" = const("Standard Text"),
                                  "No." = field(Code);
                    RunPageView = sorting("Table Name", "No.", "Language Code", "All Language Codes", "Starting Date", "Ending Date");
                    ToolTip = 'Select or set up additional text. Extended text can be inserted under the Description field on document lines for the item.';
                }
            }
        }
        area(Promoted)
        {
            group(Category_Process)
            {
                Caption = 'Process';

                actionref("E&xtended Texts_Promoted"; "E&xtended Texts")
                {
                }
            }
        }
    }
}