ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 8800 Custom Layout Reporting - OnSetOutputTypeOnsetOutputMethod

Open alapenas opened this issue 5 years ago • 1 comments

Hello, would it be possible to add OnSetOutputTypeOnsetOutputMethod event to Codeunit 8800 Custom Layout Reporting, like this:

local procedure SetOutputType(ReportID: Integer)
var
   OutputMethod: Text;
   OptionInt: Integer;
begin
   // The request page should have the appropriate parameters set for the chosen output method
   OutputMethod := GetOptionValueFromRequestPage(GetRequestParametersText(ReportID), 'ChosenOutputMethod');
   //new event begin
   OnSetOutputTypeOnsetOutputMethod(OutputMethod);
   //new event end
   if OutputMethod <> '' then begin
       if not Evaluate(OptionInt, OutputMethod) then
           Error(OutputNotSupportedErr);
   end else
       Error(OutputNotSupportedErr);

   SetOutputOption(OptionInt);
end; 
[IntegrationEvent(false, false)]
local procedure OnSetOutputTypeOnsetOutputMethod(var OutputMethod: Text)
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