ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[EVENT REQUEST] Table 27 - OnModify - OnBeforePlanningAssignmentItemChange

Open Denushaponov opened this issue 3 years ago • 6 comments

Please add the following event and IsHandled to the OnModify trigger for table 27

  trigger OnModify()
    var
        IsHandled: Boolean;
    begin
        UpdateReferencedIds();
        SetLastDateTimeModified();
      
        OnBeforePlanningAssignmentItemChange(Rec, xRec, PlanningAssignment, IsHandled);
	if not IsHandled then
        PlanningAssignment.ItemChange(Rec, xRec);

        UpdateItemUnitGroup();
    end;

    [IntegrationEvent(false, false)]
    local procedure OnBeforePlanningAssignmentItemChange(var Item: Record Item; xItem: Record Item; PlanningAssignment: Record "Planning Assignment"; var IsHandled: Boolean)
    begin
    end;

Internal work item: AB#536757

Denushaponov avatar Mar 09 '23 17:03 Denushaponov

Using IsHandled here is very risky approach as you can miss important code on modify. Please explain what exactly you want to achieve by this?

AlexanderYakunin avatar Mar 10 '23 09:03 AlexanderYakunin

I'm Really sorry, therefore I replaced the code with the more precise version I need to run PlanningAssignment.ItemChange(Rec, xRec); and customized ItemChange function from conditional statement

Denushaponov avatar Mar 11 '23 15:03 Denushaponov

@AlexanderYakunin Hello. Have you had a chance to review this request after it was updated?

NadiiaMelnyk-BC avatar Jun 06 '23 08:06 NadiiaMelnyk-BC

Hello @Denushaponov Just to check is this still valid request?

AleksandricMarko avatar May 30 '24 11:05 AleksandricMarko

I believe so.

чт, 30 мая 2024 г., 2:34 PM Marko Aleksandric @.***>:

Hello @Denushaponov https://github.com/Denushaponov Just to check is this still valid request?

— Reply to this email directly, view it on GitHub https://github.com/microsoft/ALAppExtensions/issues/22512#issuecomment-2139360244, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMY6YSE57DEQC5YUTQPZUSLZE4FF7AVCNFSM6AAAAAAVVMSIWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZZGM3DAMRUGQ . You are receiving this because you were mentioned.Message ID: @.***>

Denushaponov avatar Jun 02 '24 19:06 Denushaponov

Already implemented from BC 22.5 and newer

AleksandricMarko avatar Jul 15 '24 11:07 AleksandricMarko