ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 77 "Report Selections" – OnFindPrintUsageInternalOnAfterSetFilter

Open TMEKUMA opened this issue 2 years ago • 3 comments

Describe the request

I'm not allowed to reopen the issue #26931, so I've created a new one.

In the event OnFindReportSelection, I don't know who called the function from where. We only want to change the filter when printing. In the standard function FindEmailAttachmentUsageForVend, the special filter is also set in the higher function.

That's why we still need the event.

Additional context

I have looked at places before. The problem with these is that there are various functions for printing a report. Internal work item: AB#550471

TMEKUMA avatar Sep 25 '24 11:09 TMEKUMA

@TMEKUMA sorry, this fell through the cracks. Can you confirm this is something you still need before I assign an engineer to look into the issue?

Aleyenda avatar Apr 10 '25 09:04 Aleyenda

@Aleyenda Yes, we have a task here, which is why I can't do it.

TMEKUMA avatar Apr 14 '25 08:04 TMEKUMA

@TMEKUMA We do not want the new event in this place. It is an internal function that is called by the module. There is already an event in the OnFindReportSelections that is called in FindReportSelections.

You can:

  1. Introduce a static codeunit. Manually bind the subscriber to the event to handler of the OnFindReportSelections. This way you can subscribe only from selected processes. We can also add the event on the new place if needed.
  2. You can get the filter on the ReportSelection usage and decide if it is customer or vendor or wherever you want to subscribe to.
  3. Introduce a new report/ report selection and handle it this way.

Adding the event in the requested place is not a way to go.

nikolakukrika avatar Apr 14 '25 12:04 nikolakukrika