Skip to content

[Event Request] table 2582 "Dimension Correction" #28744

@auzhhv

Description

@auzhhv

Why do you need this change?

Can you add a event so i can override Rec."Update Analysis Views".

    trigger OnInsert()
    var
        DimensionCorrection: Record "Dimension Correction";
        AnalysisView: Record "Analysis View";
    begin
        if not DimensionCorrection.FindLast() then
            Rec."Entry No." := 1
        else
            Rec."Entry No." := DimensionCorrection."Entry No." + 1;

        if Rec.Description = '' then
            Rec.Description := StrSubstNo(DimensionCorrectionLbl, Rec."Entry No.");

        AnalysisView.SetRange(Blocked, false);
        AnalysisView.SetRange("Account Source", AnalysisView."Account Source"::"G/L Account");
        AnalysisView.SetRange("Update on Posting", true);
//IsHandled here?
        Rec."Update Analysis Views" := not AnalysisView.IsEmpty();
//Or something more general like OnAfterOnInsert with Rec as reference
    end;

Describe the request

To be able to override default options
Internal work item: AB#580503

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions