tableextension 50112 MyExtension extends "Gen. Journal Line"
{
fields
{
field(50100; "My Field"; Text[30])
{
Caption = 'My Field';
DataClassification = CustomerContent;
}
}
}
pageextension 50111 MyExtension extends "Payment Journal"
{
layout
{
addafter(Description)
{
field("My Field"; Rec."My Field")
{
ApplicationArea = All;
Caption = 'My Field';
}
}
}
}
tableextension 50113 MyExtension2 extends "Vendor Ledger Entry"
{
fields
{
field(50100; "My Field"; Text[30])
{
Caption = 'My Field';
DataClassification = CustomerContent;
}
}
}
pageextension 50113 MyExtension2 extends "Vendor Ledger Entries"
{
layout
{
addafter(Description)
{
field("My Field"; Rec."My Field")
{
ApplicationArea = All;
Caption = 'My Field';
}
}
}
}
codeunit 50113 MyCodeunit2
{
[EventSubscriber(ObjectType::Table, Database::"Vendor Ledger Entry", 'OnAfterCopyVendLedgerEntryFromGenJnlLine', '', false, false)]
local procedure OnAfterCopyVendLedgerEntryFromGenJnlLine(GenJournalLine: Record "Gen. Journal Line"; var VendorLedgerEntry: Record "Vendor Ledger Entry")
begin
VendorLedgerEntry.Validate("My Field", GenJournalLine."My Field");
end;
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,188 Super User 2024 Season 2
Martin Dráb 230,030 Most Valuable Professional
nmaenpaa 101,156