ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table Fin. Charge Comment Line OnBeforeCopyComments

Open MattiLE opened this issue 7 years ago • 0 comments

Hi AL-team,

we have advanced comment logic and need a additional publisher. Can you add the Publisher as follows?

[External] CopyComments(FromType : Integer;ToType : Integer;FromNumber : Code[20];ToNumber : Code[20])
// NEW BEG
IsHandled := FALSE;
OnBeforeCopyComments(FinChrgCommentLine,ToType,IsHandled,FromType,FromNumber,ToNumber);
IF IsHandled THEN 
  EXIT; 
// NEW END
FinChrgCommentLine.SETRANGE(Type,FromType);
FinChrgCommentLine.SETRANGE("No.",FromNumber);
IF FinChrgCommentLine.FINDSET THEN
  REPEAT
    FinChrgCommentLine2 := FinChrgCommentLine;
    FinChrgCommentLine2.Type := ToType;
    FinChrgCommentLine2."No." := ToNumber;
    FinChrgCommentLine2.INSERT;
  UNTIL FinChrgCommentLine.NEXT = 0;

LOCAL [IntegrationEvent] OnBeforeCopyComments(VAR FinChrgCommentLine : Record "Fin. Charge Comment Line";ToType : Integer;VAR IsHandled : Boolean;FromType : Integer;FromNumber : Code[20];ToNumber : Code[20])

MattiLE avatar Jul 25 '19 13:07 MattiLE