Page 619 IC Inbox/Outbox Jnl. Line Dim.
src/Layers/W1/BaseApp/Finance/Intercompany/Dimension/ICInboxOutboxJnlLineDim.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 dimension information for intercompany inbox/outbox journal lines./// Provides dimension code and value viewing for intercompany journal line transactions./// </summary>page 619 "IC Inbox/Outbox Jnl. Line Dim."{ Caption = 'Intercompany Inbox/Outbox Jnl. Line Dim.'; DataCaptionExpression = GetCaption(); DelayedInsert = true; PageType = List; SourceTable = "IC Inbox/Outbox Jnl. Line Dim."; 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 SourceTableName: Text[100]; CurrTableID: Integer; CurrLineNo: Integer; 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;}