ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] page 956 "Actual/Sched. Summary FactBox" - OnBeforeUpdateData

Open MiRo65 opened this issue 6 years ago • 3 comments

Could we please have an event OnBefoereUpdateData in page 956 "Actual/Sched. Summary FactBox" in function UpdateData?

Code Example: begin // start kvspsa - Event Raiser OnBeforePostSourceDocument(WhseActivHeader, PostedSourceType, PostedSourceNo, PostedSourceSubType); // stop kvspsa with WhseActivHeader do case "Source Type" of DATABASE::"Purchase Line": begin

Event: [IntegrationEvent(TRUE, false)] local procedure OnBeforeUpdateData(var TimeSheetHeader: Record "Time Sheet Header"; var MonthQty: Decimal; var MonthDescription: Text[50]; var MonthCapacity: Decimal) begin end;

Thank you and kind regards

MiRo65 avatar Jan 28 '20 12:01 MiRo65

Incorrect request data, please correct.

AlexanderYakunin avatar Feb 05 '20 11:02 AlexanderYakunin

Code Example:

procedure UpdateData(TimeSheetHeader: Record "Time Sheet Header")
    begin
        // start kvspsa - Event Raiser
        OnBeforeUpdateData(TimeSheetHeader, MonthQty, MonthDescription, MonthCapacity);
        // stop kvspsa
        TimeSheetMgt.CalcActSchedFactBoxData(TimeSheetHeader, DateDescription, DateQuantity, TotalQtyText, TotalQuantity, AbsenceQty);
        PresenceQty := TotalQuantity - AbsenceQty;
        CurrPage.Update(false);
    end;

Event:

[IntegrationEvent(TRUE, false)]
local procedure OnBeforeUpdateData(var TimeSheetHeader: Record "Time Sheet Header"; var MonthQty: Decimal; var MonthDescription: Text[50]; var MonthCapacity: Decimal)
begin
end;

StHillmann avatar Mar 19 '20 10:03 StHillmann

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

bc-ghost avatar Mar 24 '20 07:03 bc-ghost