Codeunit 19 Gen. Jnl.-Post Preview

Base Application, Microsoft.Finance.GeneralLedger.Preview

Source AL, 365 lines

src/Layers/W1/BaseApp/Finance/GeneralLedger/Preview/GenJnlPostPreview.Codeunit.allines 36 to 51 of 365, Copyright (c) Microsoft Corporation. MIT

codeunit 19 "Gen. Jnl.-Post Preview"{    trigger OnRun()    var        ErrorMessageMgt: Codeunit "Error Message Management";    begin        HideDialogs := true;        CLEAR(PostingPreviewEventHandler);        Preview(PreviewSubscriber, PreviewRecord);        HideDialogs := false;        LastErrorText := GetLastErrorText();        if not IsSuccess() then            ErrorMessageMgt.LogError(PreviewRecord, LastErrorText, '');        Error('');    end;

All 365 lines

Events 10 in 29

[IntegrationEvent] OnRunPreview(var Result: Boolean; Subscriber: Variant; RecVar: Variant)17-29
[IntegrationEvent] OnAfterBindSubscription(var PostingPreviewEventHandler: Codeunit "Posting Preview Event Handler")17-29
[IntegrationEvent] OnAfterUnbindSubscription()17-29
[IntegrationEvent] OnSystemSetPostingPreviewActive(var Result: Boolean)17-29
[IntegrationEvent] OnAfterIsActive(var Result: Boolean)17-29
[IntegrationEvent] OnBeforeThrowError()17-29
[IntegrationEvent] OnAfterShowAllEntries()17-29

All 11 events in 17-29

Public procedures 8 in 29

Preview(Subscriber: Variant; RecVar: Variant)17-29
GetPreviewHandler(var ResultPostingPreviewEventHandler: Codeunit "Posting Preview Event Handler")17-29
IsActive(): Boolean17-29
IsSuccess(): Boolean17-29
SetContext(Subscriber: Variant; RecVar: Variant)17-29
ShowDimensions(TableID: Integer; EntryNo: Integer; DimensionSetID: Integer)17-29

All 8 procedures

Changes 1 in 24

List17181920212223242526272829
Procedures1
Events13
MessageIfPostingPreviewMultipleDocuments(RecordRefToPreview: RecordRef; DocumentNo: Code[20])new in 24
added

All 5 changes in 17-29