Page 652 IC Document Dimensions
src/Layers/W1/BaseApp/Finance/Intercompany/Dimension/ICDocumentDimensions.Page.al106 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 System.Globalization;/// <summary>/// Displays and manages intercompany document dimensions for specific transactions./// Provides detailed view of dimension assignments on intercompany document lines./// </summary>page 652 "IC Document Dimensions"{ Caption = 'Intercompany Document Dimensions'; DataCaptionExpression = GetCaption(); DelayedInsert = true; PageType = List; SourceTable = "IC Document Dimension"; layout { area(content) { repeater(Control1) { ShowCaption = false; field("Dimension Code"; Rec."Dimension Code") { ApplicationArea = Dimensions; ToolTip = 'Specifies the dimension.'; } field("Dimension Value Code"; Rec."Dimension Value Code") { ApplicationArea = Dimensions; ToolTip = 'Specifies the dimension value.'; } } } area(factboxes) { systempart(Control1900383207; Links) { ApplicationArea = RecordLinks; Visible = false; } systempart(Control1905767507; Notes) { ApplicationArea = Notes; Visible = false; } } } actions { } var CurrTableID: Integer; CurrLineNo: Integer; SourceTableName: Text[100]; local procedure GetCaption(): Text[250] var ObjTransl: Record "Object Translation"; NewTableID: Integer; begin NewTableID := GetTableID(Rec.GetFilter("Table ID")); if NewTableID = 0 then exit(''); if NewTableID = 0 then SourceTableName := '' else if NewTableID <> CurrTableID then SourceTableName := ObjTransl.TranslateObject(ObjTransl."Object Type"::Table, NewTableID); CurrTableID := NewTableID; if Rec.GetFilter("Line No.") = '' then CurrLineNo := 0 else if Rec.GetRangeMin("Line No.") = Rec.GetRangeMax("Line No.") then CurrLineNo := Rec.GetRangeMin("Line No.") else CurrLineNo := 0; if NewTableID = 0 then exit(''); exit(StrSubstNo('%1 %2', SourceTableName, Format(CurrLineNo))); end; local procedure GetTableID(TableIDFilter: Text[250]): Integer var NewTableID: Integer; begin if Evaluate(NewTableID, TableIDFilter) then exit(NewTableID); exit(0); end;}