Codeunit 6236 Analysis View Entry Subscriber
Source AL, 43 lines
src/Apps/W1/Sustainability/app/src/FinancialReporting/AnalysisViewEntrySubscriber.Codeunit.allines 7 to 22 of 43, Copyright (c) Microsoft Corporation. MIT
codeunit 6236 "Analysis View Entry Subscriber"{ [EventSubscriber(ObjectType::Table, Database::"Analysis View Entry", 'OnLookupAccountNo', '', false, false)] local procedure OnLookupAccountNo(var AnalysisViewEntry: Record "Analysis View Entry"; var IsHandled: Boolean) var SustAccount: Record "Sustainability Account"; SustAccountList: Page "Sustainability Account List"; begin case AnalysisViewEntry."Account Source" of AnalysisViewEntry."Account Source"::"Sust. Account": begin SustAccountList.LookupMode(true); if SustAccountList.RunModal() = ACTION::LookupOK then begin SustAccountList.GetRecord(SustAccount); AnalysisViewEntry.Validate("Account No.", SustAccount."No."); end;