ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Page 5197 Attendee Subform - OnBeforeShowCard

Open alapenas opened this issue 5 years ago • 1 comments

Hello, would it be possible to add OnBeforeShowCard event to Page 5197 Attendee Subform, like this:

local procedure ShowCard()
var
   Cont: Record Contact;
   Salesperson: Record "Salesperson/Purchaser";
   IsHandled: Boolean;
begin
   //new event begin
   IsHandled := false;
   OnBeforeShowCard(Rec, IsHandled);
   if IsHandled then
       exit;
   //new event end
   if "Attendee Type" = "Attendee Type"::Contact then begin
       if Cont.Get("Attendee No.") then
           PAGE.Run(PAGE::"Contact Card", Cont);
   end else
       if Salesperson.Get("Attendee No.") then
           PAGE.Run(PAGE::"Salesperson/Purchaser Card", Salesperson);
end; 
[IntegrationEvent(false, false)]
local procedure OnBeforeShowCard(Attendee: Record Attendee; var isHandled: Boolean)
begin
end; 

alapenas avatar Oct 25 '21 11:10 alapenas

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. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar Oct 27 '21 11:10 JesperSchulz