[EVENT REQUEST] Table 27 - OnModify - OnBeforePlanningAssignmentItemChange
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
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?
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
@AlexanderYakunin Hello. Have you had a chance to review this request after it was updated?
Hello @Denushaponov Just to check is this still valid request?
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: @.***>
Already implemented from BC 22.5 and newer