Page 9185 Generic Chart Text Editor, source in 29

Source29

src/Layers/W1/BaseApp/System/GenericChart/GenericChartTextEditor.Page.al61 lines, Copyright (c) Microsoft Corporation. MIT

namespace System.Visualization;

using System.Globalization;

page 9185 "Generic Chart Text Editor"
{
    Caption = 'Generic Chart Text Editor';
    PageType = List;
    ShowFilter = false;
    SourceTable = "Generic Chart Captions Buffer";
    SourceTableTemporary = true;

    layout
    {
        area(content)
        {
            repeater(Group)
            {
                field("Code"; Rec.Code)
                {
                    ApplicationArea = Basic, Suite;
                    ToolTip = 'Specifies a code. This field is intended only for internal use.';
                    Visible = false;
                }
                field("Language Code"; Rec."Language Code")
                {
                    ApplicationArea = Basic, Suite;
                    ToolTip = 'Specifies the language that is used when translating specified text on documents to foreign business partner, such as an item description on an order confirmation.';
                }
                field("Language Name"; Rec."Language Name")
                {
                    ApplicationArea = Basic, Suite;
                    Editable = false;
                    ToolTip = 'Specifies the language of the measure caption that is shown next to the y-axis of the generic chart.';
                }
                field(Text; Rec.Caption)
                {
                    ApplicationArea = Basic, Suite;
                    ToolTip = 'Specifies the caption that is shown next to the y-axis to describe the selected measure.';
                }
            }
        }
    }

    actions
    {
    }

    procedure AssistEdit(var TempGenericChartCaptionsBuf: Record "Generic Chart Captions Buffer" temporary; CaptionCode: Code[10]): Text
    var
        Language: Codeunit Language;
    begin
        Rec.Copy(TempGenericChartCaptionsBuf, true);
        Rec.SetRange(Code, CaptionCode);
        if Rec.Get(CaptionCode, Language.GetUserLanguageCode()) then;
        CurrPage.RunModal();
        exit(Rec.GetCaption(CaptionCode, Language.GetUserLanguageCode()))
    end;
}