Page 667 IC Mapping Dimension Outgoing, source in 29

Source29

src/Layers/W1/BaseApp/Finance/Intercompany/Dimension/ICMappingDimensionOutgoing.Page.al65 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.Intercompany.Dimension;

using Microsoft.Finance.Dimension;

/// <summary>
/// Enables mapping of local company dimensions to intercompany dimensions for outgoing transactions.
/// Provides editing interface for establishing dimension code mappings between local and IC structures.
/// </summary>
page 667 "IC Mapping Dimension Outgoing"
{
    PageType = ListPart;
    SourceTable = Dimension;
    Editable = true;
    DeleteAllowed = false;
    InsertAllowed = false;

    layout
    {
        area(Content)
        {
            repeater(Lines)
            {
                field(CompanyDimCode; Rec.Code)
                {
                    Caption = 'Dim. Code.';
                    ToolTip = 'Specifies the dimension code.';
                    ApplicationArea = All;
                    Editable = false;
                    Enabled = false;
                }
                field(CompanyDimName; Rec.Name)
                {
                    Caption = 'Dim. Name';
                    ToolTip = 'Specifies the dimension name.';
                    ApplicationArea = All;
                    Editable = false;
                    Enabled = false;
                }
                field(ICDimCode; Rec."Map-to IC Dimension Code")
                {
                    Caption = 'IC Dim. Code';
                    ToolTip = 'Specifies the intercompany''s dimension code associated with the dimension of the current company.';
                    ApplicationArea = All;
                    TableRelation = "IC Dimension".Code;
                    Editable = true;
                    Enabled = true;
                }
            }
        }
    }

    /// <summary>
    /// Retrieves the currently selected dimension lines for processing.
    /// </summary>
    /// <param name="Dimensions">Record variable to store selected dimension records</param>
    procedure GetSelectedLines(var Dimensions: Record Dimension)
    begin
        CurrPage.SetSelectionFilter(Dimensions);
    end;
}